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; }
@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); } }