Example #1
0
 @SubscribeEvent
 public void onSoundSetup(SoundSetupEvent event) {
   Objects.log.info("Replacing default soundsystem library with custom one");
   try {
     SoundSystemConfig.removeLibrary(LibraryLWJGLOpenAL.class);
     SoundSystemConfig.addLibrary(LibraryDiscoTek.class);
   } catch (SoundSystemException e) {
     Objects.log.error("Failed setting up custom soundsystem", e);
   }
 }