use of org.terasology.audio.nullAudio.NullAudioManager 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);
}
use of org.terasology.audio.nullAudio.NullAudioManager in project Terasology by MovingBlocks.
the class HeadlessEnvironment method setupAudio.
@Override
protected void setupAudio() {
NullAudioManager audioManager = new NullAudioManager();
context.put(AudioManager.class, audioManager);
}
use of org.terasology.audio.nullAudio.NullAudioManager in project Terasology by MovingBlocks.
the class HeadlessAudio method initNoSound.
private void initNoSound(Context context) {
audioManager = new NullAudioManager();
context.put(AudioManager.class, audioManager);
}
Aggregations