public class AndroidMini2DxAudio
extends java.lang.Object
AndroidAudio to support sound completion events| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<AndroidMini2DxMusic> |
musics |
| Constructor and Description |
|---|
AndroidMini2DxAudio(android.content.Context context,
AndroidApplicationConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSoundCompletionListener(SoundCompletionListener listener) |
void |
appendRecentSoundId(long streamId) |
void |
dispose()
Kills the soundpool and all other resources
|
AudioDevice |
newAudioDevice(int samplingRate,
boolean isMono) |
AudioRecorder |
newAudioRecorder(int samplingRate,
boolean isMono) |
Music |
newMusic(java.io.FileDescriptor fd)
Creates a new Music instance from the provided FileDescriptor.
|
Music |
newMusic(FileHandle file) |
Sound |
newSound(FileHandle file) |
protected void |
pause() |
void |
removeSoundCompletionListener(SoundCompletionListener listener) |
protected void |
resume() |
void |
update() |
protected final java.util.List<AndroidMini2DxMusic> musics
public AndroidMini2DxAudio(android.content.Context context,
AndroidApplicationConfiguration config)
public void update()
public void appendRecentSoundId(long streamId)
public void addSoundCompletionListener(SoundCompletionListener listener)
public void removeSoundCompletionListener(SoundCompletionListener listener)
protected void pause()
protected void resume()
public AudioDevice newAudioDevice(int samplingRate,
boolean isMono)
public Music newMusic(FileHandle file)
public Music newMusic(java.io.FileDescriptor fd)
fd - the FileDescriptor from which to create the MusicAudio#newMusic(FileHandle)public Sound newSound(FileHandle file)
public AudioRecorder newAudioRecorder(int samplingRate,
boolean isMono)
public void dispose()