示例#1
0
  public void init() {
    /*
     * NativeFmodEx Init
     */
    try {
      Init.loadLibraries();
    } catch (InitException e) {
      printfExit("NativeFmodEx error! %s\n", e.getMessage());
      return;
    }

    /*
     * Checking NativeFmodEx version
     */
    if (NATIVEFMODEX_LIBRARY_VERSION != NATIVEFMODEX_JAR_VERSION) {
      printfExit(
          "Error!  NativeFmodEx library version (%08x) is different to jar version (%08x)\n",
          NATIVEFMODEX_LIBRARY_VERSION, NATIVEFMODEX_JAR_VERSION);
      return;
    }

    /*==================================================*/

    init = true;
  }
示例#2
0
  @Override
  public void init() throws Exception {
    try {
      Init.loadLibraries();

      system = new System();

      FMOD_RESULT result = FmodEx.System_Create(system);
      checkError(result, "Fmod System creation");

      system.init(32, FMOD_INIT_NORMAL, null);
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
示例#3
0
 static {
   if (!Init.isLibrariesLoaded()) {
     throw new RuntimeException(
         "Libraries not loaded ! Use Init.loadLibraries() before using NativeFmodEx.");
   }
 }