Package 

Class DefaultAndroidAudio

  • All Implemented Interfaces:
    com.badlogic.gdx.Audio , com.badlogic.gdx.backends.android.AndroidAudio , com.badlogic.gdx.utils.Disposable

    
    public class DefaultAndroidAudio
     implements AndroidAudio
                        

    An implementation of the Audio interface for Android.

    • Method Summary

      Modifier and Type Method Description
      void pause() Pauses all playing sounds and musics
      void resume() Resumes all playing sounds and musics
      AudioDevice newAudioDevice(int samplingRate, boolean isMono)
      Music newMusic(FileHandle file)
      boolean switchOutputDevice(String deviceIdentifier)
      Array<String> getAvailableOutputDevices()
      Music newMusic(FileDescriptor fd) Creates a new Music instance from the provided FileDescriptor.
      Sound newSound(FileHandle file)
      AudioRecorder newAudioRecorder(int samplingRate, boolean isMono)
      void dispose() Kills the soundpool and all other resources
      void notifyMusicDisposed(AndroidMusic music) Notifies the AndroidAudio if an AndroidMusic is disposed
      • Methods inherited from class com.badlogic.gdx.Audio

        getAvailableOutputDevices, newAudioDevice, newAudioRecorder, newMusic, newSound, switchOutputDevice
      • Methods inherited from class com.badlogic.gdx.utils.Disposable

        dispose
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait