| Modifier and Type | Field and Description |
|---|---|
| private final OpenALLwjglAudio | |
| private final int | |
| private IntBuffer | |
| private final int | |
| private byte[] | |
| private static final int | |
| private final int | |
| private int | |
| private boolean | |
| private float | |
| private int | |
| private float | |
| private int | |
| private final ByteBuffer | |
| private float |
| Access | Constructor and Description |
|---|---|
| public | OpenALAudioDevice(OpenALLwjglAudio audio, int sampleRate, boolean isMono, int bufferSize, int bufferCount)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements com. Frees all resources associated with this AudioDevice. |
| private int | |
| public int | |
| public int | |
| public float | |
| public int | |
| public boolean | |
| public boolean | |
| public void | |
| public void | resume()
Implements com. Unpauses the audio device if supported |
| public void | |
| public void | setVolume(float volume)
Implements com. Sets the volume in the range [0,1]. |
| public void | |
| public void | writeSamples(short[] samples, int offset, int numSamples)
Implements com. Writes the array of 16-bit signed PCM samples to the audio device and blocks until they have been processed. |
| public void | writeSamples(float[] samples, int offset, int numSamples)
Implements com. Writes the array of float PCM samples to the audio device and blocks until they have been processed. |
| public void |
| audio | back to summary |
|---|---|
| private final OpenALLwjglAudio audio | |
| bufferCount | back to summary |
|---|---|
| private final int bufferCount | |
| buffers | back to summary |
|---|---|
| private IntBuffer buffers | |
| bufferSize | back to summary |
|---|---|
| private final int bufferSize | |
| bytes | back to summary |
|---|---|
| private byte[] bytes | |
| bytesPerSample | back to summary |
|---|---|
| private static final int bytesPerSample | |
| channels | back to summary |
|---|---|
| private final int channels | |
| format | back to summary |
|---|---|
| private int format | |
| isPlaying | back to summary |
|---|---|
| private boolean isPlaying | |
| renderedSeconds | back to summary |
|---|---|
| private float renderedSeconds | |
| sampleRate | back to summary |
|---|---|
| private int sampleRate | |
| secondsPerBuffer | back to summary |
|---|---|
| private float secondsPerBuffer | |
| sourceID | back to summary |
|---|---|
| private int sourceID | |
| tempBuffer | back to summary |
|---|---|
| private final ByteBuffer tempBuffer | |
| volume | back to summary |
|---|---|
| private float volume | |
| OpenALAudioDevice | back to summary |
|---|---|
| public OpenALAudioDevice(OpenALLwjglAudio audio, int sampleRate, boolean isMono, int bufferSize, int bufferCount) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com. Doc from com. Frees all resources associated with this AudioDevice. Needs to be called when the device is no longer needed. | |
| fillBuffer | back to summary |
|---|---|
| private int fillBuffer(byte[] data, int offset, int length) Blocks until some of the data could be buffered. | |
| getChannels | back to summary |
|---|---|
| public int getChannels() | |
| getLatency | back to summary |
|---|---|
| public int getLatency() Implements com. | |
| getPosition | back to summary |
|---|---|
| public float getPosition() | |
| getRate | back to summary |
|---|---|
| public int getRate() | |
| isMono | back to summary |
|---|---|
| public boolean isMono() Implements com. | |
| isPlaying | back to summary |
|---|---|
| public boolean isPlaying() | |
| pause | back to summary |
|---|---|
| public void pause() Implements com. Doc from com. Pauses the audio device if supported
| |
| resume | back to summary |
|---|---|
| public void resume() Implements com. Doc from com. Unpauses the audio device if supported
| |
| setPosition | back to summary |
|---|---|
| public void setPosition(float position) | |
| setVolume | back to summary |
|---|---|
| public void setVolume(float volume) Implements com. Doc from com. Sets the volume in the range [0,1]. | |
| stop | back to summary |
|---|---|
| public void stop() | |
| writeSamples | back to summary |
|---|---|
| public void writeSamples(short[] samples, int offset, int numSamples) Implements com. Doc from com. Writes the array of 16-bit signed PCM samples to the audio device and blocks until they have been processed. | |
| writeSamples | back to summary |
|---|---|
| public void writeSamples(float[] samples, int offset, int numSamples) Implements com. Doc from com. Writes the array of float PCM samples to the audio device and blocks until they have been processed. | |
| writeSamples | back to summary |
|---|---|
| public void writeSamples(byte[] data, int offset, int length) | |