com.badlogic.gdx.backends.android
Class AndroidAudio

java.lang.Object
  extended by com.badlogic.gdx.backends.android.AndroidAudio
All Implemented Interfaces:
Audio

public final class AndroidAudio
extends Object
implements Audio

An implementation of the Audio interface for Android.

Author:
mzechner

Constructor Summary
AndroidAudio(android.content.Context context, AndroidApplicationConfiguration config)
           
 
Method Summary
 void dispose()
          Kills the soundpool and all other resources
 AudioDevice newAudioDevice(int samplingRate, boolean isMono)
          
 AudioRecorder newAudioRecorder(int samplingRate, boolean isMono)
          
 Music newMusic(FileHandle file)
          
 Sound newSound(FileHandle file)
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndroidAudio

public AndroidAudio(android.content.Context context,
                    AndroidApplicationConfiguration config)
Method Detail

newAudioDevice

public AudioDevice newAudioDevice(int samplingRate,
                                  boolean isMono)

Specified by:
newAudioDevice in interface Audio

newMusic

public Music newMusic(FileHandle file)

Specified by:
newMusic in interface Audio

newSound

public Sound newSound(FileHandle file)

Specified by:
newSound in interface Audio

newAudioRecorder

public AudioRecorder newAudioRecorder(int samplingRate,
                                      boolean isMono)

Specified by:
newAudioRecorder in interface Audio

dispose

public void dispose()
Kills the soundpool and all other resources



Copyright © 2013. All Rights Reserved.