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
|
Sound |
newSound(FileHandle file) |
newAudioDevice, newAudioRecorder, newMusic, newMusic, notifyMusicDisposed, pause, resumepublic AsynchronousAndroidAudio(android.content.Context context,
AndroidApplicationConfiguration config)
public void dispose()
DefaultAndroidAudiodispose in interface Disposabledispose in class DefaultAndroidAudiopublic Sound newSound(FileHandle file)
DefaultAndroidAudionewSound in interface AudionewSound in class DefaultAndroidAudioCopyright © 2021. All rights reserved.