Exemple #1
0
  @Override
  public void dispose() {
    FMOD_RESULT result;

    if (sound != null) {
      result = sound.release();
      checkError(result, "sound release");
    }

    if (system != null) {
      result = system.close();
      checkError(result, "system close");
      result = system.release();
      checkError(result, "system release");
    }
  }
  public void stop() {
    if (!init || deinit) return;
    deinit = true;

    print("\n");

    /*
     * Shut down
     */
    FMOD_RESULT result;
    if (!sound.isNull()) {
      result = sound.release();
      errorCheck(result);
    }
    if (!system.isNull()) {
      result = system.close();
      errorCheck(result);
      result = system.release();
      errorCheck(result);
    }

    printExit("Shutdown\n");
  }