private void errorCheck(FMOD_RESULT result) {
   if (result != FMOD_RESULT.FMOD_OK) {
     printfExit("FMOD error! (%d) %s\n", result.asInt(), FmodEx.FMOD_ErrorString(result));
   }
 }
Example #2
0
 private void checkError(FMOD_RESULT result, String s) {
   if (result != FMOD_RESULT.FMOD_OK) {
     throw new RuntimeException(
         "FMOD error: " + result.asInt() + " " + FmodEx.FMOD_ErrorString(result));
   }
 }