protected void shutdown() {
    super.shutdown();

    backgroundMusic.release(audioMgr);
    splatSound.release(audioMgr);
    resource1.unload();
    audioMgr.shutdown();

    if (gameClient != null) {
      gameClient.sendByeMessage();
      try {
        gameClient.shutdown();
      } catch (IOException e) {
        e.printStackTrace();
      }
    }
    display.close();
  }
Exemplo n.º 2
0
 public final void triggerSound(final AudioResource aAudioResource) {
   // collect these and play at end of tick..
   aAudioResource.start();
 }