use of org.terasology.engine.audio.AudioEndListener in project Terasology by MovingBlocks.
the class OpenALManager method loopMusic.
@Override
public void loopMusic(StreamingSound music, float volume) {
AudioEndListener loopingEndListener = interrupted -> {
if (!interrupted) {
loopMusic(music, volume);
}
};
playMusic(music, volume, loopingEndListener);
}
Aggregations