public class AsynchronousAndroidAudio extends DefaultAndroidAudio
AndroidAudio interface.
Sounds are played on a separate thread. This avoids waiting for sound ids on methods that can
potentially lock main thread for considerable amount of time, especially when playing several
sounds at the same time. The limitation of this approach is that methods that require a sound id
are not supported.| Constructor and Description |
|---|
AsynchronousAndroidAudio(android.content.Context context,
AndroidApplicationConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Kills the soundpool and all other resources
|
com.badlogic.gdx.audio.Sound |
newSound(com.badlogic.gdx.files.FileHandle file) |
newAudioDevice, newAudioRecorder, newMusic, newMusic, notifyMusicDisposed, pause, resumepublic AsynchronousAndroidAudio(android.content.Context context,
AndroidApplicationConfiguration config)
public void dispose()
DefaultAndroidAudiodispose in interface com.badlogic.gdx.utils.Disposabledispose in class DefaultAndroidAudiopublic com.badlogic.gdx.audio.Sound newSound(com.badlogic.gdx.files.FileHandle file)
DefaultAndroidAudionewSound in interface com.badlogic.gdx.AudionewSound in class DefaultAndroidAudio