public class Mini2DxOpenALAudioDevice
extends java.lang.Object
implements com.badlogic.gdx.audio.AudioDevice
OpenALAudioDevice
to support sound completion eventsConstructor and Description |
---|
Mini2DxOpenALAudioDevice(Mini2DxOpenALAudio audio,
int sampleRate,
boolean isMono,
int bufferSize,
int bufferCount) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
int |
getChannels() |
int |
getLatency() |
float |
getPosition() |
int |
getRate() |
boolean |
isMono() |
boolean |
isPlaying() |
void |
setPosition(float position) |
void |
setVolume(float volume) |
void |
stop() |
void |
writeSamples(byte[] data,
int offset,
int length) |
void |
writeSamples(float[] samples,
int offset,
int numSamples) |
void |
writeSamples(short[] samples,
int offset,
int numSamples) |
public Mini2DxOpenALAudioDevice(Mini2DxOpenALAudio audio, int sampleRate, boolean isMono, int bufferSize, int bufferCount)
public void writeSamples(short[] samples, int offset, int numSamples)
writeSamples
in interface com.badlogic.gdx.audio.AudioDevice
public void writeSamples(float[] samples, int offset, int numSamples)
writeSamples
in interface com.badlogic.gdx.audio.AudioDevice
public void writeSamples(byte[] data, int offset, int length)
public void stop()
public boolean isPlaying()
public void setVolume(float volume)
setVolume
in interface com.badlogic.gdx.audio.AudioDevice
public float getPosition()
public void setPosition(float position)
public int getChannels()
public int getRate()
public void dispose()
dispose
in interface com.badlogic.gdx.audio.AudioDevice
dispose
in interface com.badlogic.gdx.utils.Disposable
public boolean isMono()
isMono
in interface com.badlogic.gdx.audio.AudioDevice
public int getLatency()
getLatency
in interface com.badlogic.gdx.audio.AudioDevice