Class 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 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 class be.yildizgames.module.audio.BaseAudioEngine
      • createSound

        public be.yildizgames.module.audio.SoundSource createSound​(String file)
        Specified by:
        createSound in interface be.yildizgames.module.audio.SoundBuilder
      • addResourcePath

        public OpenAlAudioEngine addResourcePath​(be.yildizgames.common.file.ResourcePath path)
        Specified by:
        addResourcePath in interface be.yildizgames.module.audio.AudioEngine
      • closeImpl

        protected void closeImpl()
        Specified by:
        closeImpl in class be.yildizgames.module.audio.BaseAudioEngine
      • delete

        public void delete()
        Specified by:
        delete in interface be.yildizgames.common.jni.Native
      • getPointer

        public be.yildizgames.common.jni.NativePointer getPointer()
        Specified by:
        getPointer in interface be.yildizgames.common.jni.Native