Class OpenAlAudioEngine
- java.lang.Object
-
- be.yildizgames.module.audio.BaseAudioEngine
-
- be.yildizgames.module.audio.openal.OpenAlAudioEngine
-
- All Implemented Interfaces:
be.yildizgames.common.jni.Native
,be.yildizgames.module.audio.AudioEngine
,be.yildizgames.module.audio.SoundBuilder
,AutoCloseable
public final class OpenAlAudioEngine extends be.yildizgames.module.audio.BaseAudioEngine implements be.yildizgames.common.jni.Native
OpenAL implementation for the audio engine.- Author:
- Grégory Van den Borre
-
-
Method Summary
Modifier and Type Method Description OpenAlAudioEngine
addResourcePath(be.yildizgames.common.file.ResourcePath path)
protected void
closeImpl()
static OpenAlAudioEngine
create(be.yildizgames.common.libloader.NativeResourceLoader loader)
Create an openal audio engine.be.yildizgames.module.audio.SoundSource
createSound(String file)
void
delete()
be.yildizgames.common.jni.NativePointer
getPointer()
void
update()
-
-
-
Method Detail
-
create
public static OpenAlAudioEngine create(be.yildizgames.common.libloader.NativeResourceLoader loader)
Create an openal audio engine.- Parameters:
loader
- Loader for the native libraries.- Returns:
- The created openal audio engine.
- Throws:
AssertionError
- if loader is null.
-
update
public void update()
- Specified by:
update
in classbe.yildizgames.module.audio.BaseAudioEngine
-
createSound
public be.yildizgames.module.audio.SoundSource createSound(String file)
- Specified by:
createSound
in interfacebe.yildizgames.module.audio.SoundBuilder
-
addResourcePath
public OpenAlAudioEngine addResourcePath(be.yildizgames.common.file.ResourcePath path)
- Specified by:
addResourcePath
in interfacebe.yildizgames.module.audio.AudioEngine
-
closeImpl
protected void closeImpl()
- Specified by:
closeImpl
in classbe.yildizgames.module.audio.BaseAudioEngine
-
delete
public void delete()
- Specified by:
delete
in interfacebe.yildizgames.common.jni.Native
-
getPointer
public be.yildizgames.common.jni.NativePointer getPointer()
- Specified by:
getPointer
in interfacebe.yildizgames.common.jni.Native
-
-