Search in sources :

Example 1 with NullAudioManager

use of org.terasology.engine.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);
}
Also used : NullAudioManager(org.terasology.engine.audio.nullAudio.NullAudioManager)

Example 2 with NullAudioManager

use of org.terasology.engine.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);
}
Also used : NullAudioManager(org.terasology.engine.audio.nullAudio.NullAudioManager)

Aggregations

NullAudioManager (org.terasology.engine.audio.nullAudio.NullAudioManager)2