| Modifier and Type | Field and Description |
|---|---|
| private IntArray | |
| pack-priv long | |
| pack-priv long | |
| private final int | |
| private final int | |
| private ObjectMap | |
| private ObjectMap | |
| private IntArray | |
| private int | |
| pack-priv Array | |
| private long | |
| pack-priv boolean | |
| private Thread | |
| private String | |
| private OpenALSound[] | |
| private LongMap | |
| private IntMap |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements com. Releases all resources of this object. |
| public void | |
| pack-priv void | |
| pack-priv void | |
| public String[] | getAvailableOutputDevices()
Implements com. This function returns a list of fully qualified Output device names. |
| public long | |
| public int | |
| public AudioDevice | newAudioDevice(int sampleRate, final boolean isMono)
Implements com. Creates a new |
| public AudioRecorder | newAudioRecorder(int samplingRate, boolean isMono)
Implements com. Creates a new |
| public OpenALMusic | newMusic(FileHandle file)
Implements com. Creates a new |
| public OpenALSound | newSound(FileHandle file)
Implements com.
Creates a new |
| public OpenALSound | |
| pack-priv int | |
| public void | |
| pack-priv void | |
| public void | registerMusic(String extension, BiFunction<OpenALLwjgl3Audio, FileHandle, OpenALMusic> soundSupplier)
|
| public void | registerSound(String extension, BiFunction<OpenALLwjgl3Audio, FileHandle, OpenALSound> soundSupplier)
|
| public void | |
| pack-priv void | |
| protected void | retain(OpenALSound sound, boolean stop)
Retains a list of the most recently played sounds and stops the sound played least recently if necessary for a new sound to play |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| pack-priv void | |
| public boolean | switchOutputDevice(String deviceIdentifier)
Implements com. Sets a new OutputDevice. |
| private boolean | |
| public void |
| allSources | back to summary |
|---|---|
| private IntArray allSources | |
| context | back to summary |
|---|---|
| pack-priv long context | |
| device | back to summary |
|---|---|
| pack-priv long device | |
| deviceBufferCount | back to summary |
|---|---|
| private final int deviceBufferCount | |
| deviceBufferSize | back to summary |
|---|---|
| private final int deviceBufferSize | |
| extensionToMusicClass | back to summary |
|---|---|
| private ObjectMap<String, BiFunction<OpenALLwjgl3Audio, FileHandle, OpenALMusic>> extensionToMusicClass | |
| extensionToSoundClass | back to summary |
|---|---|
| private ObjectMap<String, BiFunction<OpenALLwjgl3Audio, FileHandle, OpenALSound>> extensionToSoundClass | |
| idleSources | back to summary |
|---|---|
| private IntArray idleSources | |
| mostRecetSound | back to summary |
|---|---|
| private int mostRecetSound | |
| music | back to summary |
|---|---|
| pack-priv Array<OpenALMusic> music | |
| nextSoundId | back to summary |
|---|---|
| private long nextSoundId | |
| noDevice | back to summary |
|---|---|
| pack-priv boolean noDevice | |
| observerThread | back to summary |
|---|---|
| private Thread observerThread | |
| preferredOutputDevice | back to summary |
|---|---|
| private String preferredOutputDevice | |
| recentSounds | back to summary |
|---|---|
| private OpenALSound[] recentSounds | |
| soundIdToSource | back to summary |
|---|---|
| private LongMap<Integer> soundIdToSource | |
| sourceToSoundId | back to summary |
|---|---|
| private IntMap<Long> sourceToSoundId | |
| OpenALLwjgl3Audio | back to summary |
|---|---|
| public OpenALLwjgl3Audio() | |
| OpenALLwjgl3Audio | back to summary |
|---|---|
| public OpenALLwjgl3Audio(int simultaneousSources, int deviceBufferCount, int deviceBufferSize) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com. Doc from com. Releases all resources of this object.
| |
| forget | back to summary |
|---|---|
| public void forget(OpenALSound sound) Removes the disposed sound from the least recently played list | |
| freeBuffer | back to summary |
|---|---|
| pack-priv void freeBuffer(int bufferID) | |
| freeSource | back to summary |
|---|---|
| pack-priv void freeSource(int sourceID) | |
| getAvailableOutputDevices | back to summary |
|---|---|
| public String[] getAvailableOutputDevices() Implements com. Doc from com. This function returns a list of fully qualified Output device names. This function is only implemented on desktop and web. Note that on gwt the GwtApplicationConfiguration#fetchAvailableOutputDevices attribute needs to be set to true for asking the user for permission! On all other platforms it will return an empty array. It will also return an empty array on error. The names returned need os dependent preprocessing before exposing to a user.
| |
| getSoundId | back to summary |
|---|---|
| public long getSoundId(int sourceId) | |
| getSourceId | back to summary |
|---|---|
| public int getSourceId(long soundId) | |
| newAudioDevice | back to summary |
|---|---|
| public AudioDevice newAudioDevice(int sampleRate, final boolean isMono) Implements com. Doc from com. Creates a new | |
| newAudioRecorder | back to summary |
|---|---|
| public AudioRecorder newAudioRecorder(int samplingRate, boolean isMono) Implements com. Doc from com. Creates a new | |
| newMusic | back to summary |
|---|---|
| public OpenALMusic newMusic(FileHandle file) Implements com. Doc from com. Creates a new | |
| newSound | back to summary |
|---|---|
| public OpenALSound newSound(FileHandle file) Implements com. Doc from com.
Creates a new Currently supported formats are WAV, MP3 and OGG.
The Sound has to be disposed if it is no longer used via the | |
| newSound | back to summary |
|---|---|
| public OpenALSound newSound(FileHandle file, String extension) | |
| obtainSource | back to summary |
|---|---|
| pack-priv int obtainSource(boolean isMusic) | |
| pauseSound | back to summary |
|---|---|
| public void pauseSound(long soundId) | |
| pauseSourcesWithBuffer | back to summary |
|---|---|
| pack-priv void pauseSourcesWithBuffer(int bufferID) | |
| registerMusic | back to summary |
|---|---|
| public void registerMusic(String extension, BiFunction<OpenALLwjgl3Audio, FileHandle, OpenALMusic> soundSupplier) | |
| registerSound | back to summary |
|---|---|
| public void registerSound(String extension, BiFunction<OpenALLwjgl3Audio, FileHandle, OpenALSound> soundSupplier) | |
| resumeSound | back to summary |
|---|---|
| public void resumeSound(long soundId) | |
| resumeSourcesWithBuffer | back to summary |
|---|---|
| pack-priv void resumeSourcesWithBuffer(int bufferID) | |
| retain | back to summary |
|---|---|
| protected void retain(OpenALSound sound, boolean stop) Retains a list of the most recently played sounds and stops the sound played least recently if necessary for a new sound to play | |
| setSoundGain | back to summary |
|---|---|
| public void setSoundGain(long soundId, float volume) | |
| setSoundLooping | back to summary |
|---|---|
| public void setSoundLooping(long soundId, boolean looping) | |
| setSoundPan | back to summary |
|---|---|
| public void setSoundPan(long soundId, float pan, float volume) | |
| setSoundPitch | back to summary |
|---|---|
| public void setSoundPitch(long soundId, float pitch) | |
| stopSound | back to summary |
|---|---|
| public void stopSound(long soundId) | |
| stopSourcesWithBuffer | back to summary |
|---|---|
| pack-priv void stopSourcesWithBuffer(int bufferID) | |
| switchOutputDevice | back to summary |
|---|---|
| public boolean switchOutputDevice(String deviceIdentifier) Implements com. Doc from com. Sets a new OutputDevice. The identifier can be retrieved from
| |
| switchOutputDevice | back to summary |
|---|---|
| private boolean switchOutputDevice(String deviceIdentifier, boolean setPreferred) | |
| update | back to summary |
|---|---|
| public void update() Implements com.
| |