use of org.terasology.audio.openAL.OpenALManager in project Terasology by MovingBlocks.
the class LwjglAudio method initialise.
@Override
public void initialise(GameEngine engine, Context rootContext) {
Config config = rootContext.get(Config.class);
try {
audioManager = new OpenALManager(config.getAudio());
} catch (LWJGLException | OpenALException e) {
logger.warn("Could not load OpenAL manager - sound is disabled", e);
audioManager = new NullAudioManager();
}
rootContext.put(AudioManager.class, audioManager);
}
Aggregations