Build 1.0_r1(from source)

android.media
Class AudioSystem

java.lang.Object
  extended by android.media.AudioSystem

public class AudioSystem
extends Object


Nested Class Summary
static interface AudioSystem.ErrorCallback
           
 
Field Summary
static int AUDIO_STATUS_ERROR
           
static int AUDIO_STATUS_OK
           
static int AUDIO_STATUS_SERVER_DIED
           
static int MAX_VOLUME
           
static int MIN_VOLUME
           
static int MODE_CURRENT
           
static int MODE_IN_CALL
           
static int MODE_INVALID
           
static int MODE_NORMAL
           
static int MODE_RINGTONE
           
static int NUM_MODES
           
static int NUM_STREAMS
           
static int ROUTE_ALL
           
static int ROUTE_BLUETOOTH
           
static int ROUTE_EARPIECE
           
static int ROUTE_HEADSET
           
static int ROUTE_SPEAKER
           
static int STREAM_ALARM
           
static int STREAM_MUSIC
           
static int STREAM_RING
           
static int STREAM_SYSTEM
           
static int STREAM_VOICE_CALL
           
 
Constructor Summary
AudioSystem()
           
 
Method Summary
static int getMode()
           
static int getRouting(int mode)
           
static int getVolume(int type)
           
static boolean isMicrophoneMuted()
           
static boolean isMusicActive()
           
static int muteMicrophone(boolean on)
           
static void setErrorCallback(AudioSystem.ErrorCallback cb)
           
static int setMode(int mode)
           
static void setParameter(String key, String value)
           
static int setRouting(int mode, int routes, int mask)
           
static int setVolume(int type, int volume)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STREAM_VOICE_CALL

public static final int STREAM_VOICE_CALL
See Also:
Constant Field Values

STREAM_SYSTEM

public static final int STREAM_SYSTEM
See Also:
Constant Field Values

STREAM_RING

public static final int STREAM_RING
See Also:
Constant Field Values

STREAM_MUSIC

public static final int STREAM_MUSIC
See Also:
Constant Field Values

STREAM_ALARM

public static final int STREAM_ALARM
See Also:
Constant Field Values

NUM_STREAMS

public static final int NUM_STREAMS
See Also:
Constant Field Values

MAX_VOLUME

public static final int MAX_VOLUME
See Also:
Constant Field Values

MIN_VOLUME

public static final int MIN_VOLUME
See Also:
Constant Field Values

MODE_INVALID

public static final int MODE_INVALID
See Also:
Constant Field Values

MODE_CURRENT

public static final int MODE_CURRENT
See Also:
Constant Field Values

MODE_NORMAL

public static final int MODE_NORMAL
See Also:
Constant Field Values

MODE_RINGTONE

public static final int MODE_RINGTONE
See Also:
Constant Field Values

MODE_IN_CALL

public static final int MODE_IN_CALL
See Also:
Constant Field Values

NUM_MODES

public static final int NUM_MODES
See Also:
Constant Field Values

ROUTE_EARPIECE

public static final int ROUTE_EARPIECE
See Also:
Constant Field Values

ROUTE_SPEAKER

public static final int ROUTE_SPEAKER
See Also:
Constant Field Values

ROUTE_BLUETOOTH

public static final int ROUTE_BLUETOOTH
See Also:
Constant Field Values

ROUTE_HEADSET

public static final int ROUTE_HEADSET
See Also:
Constant Field Values

ROUTE_ALL

public static final int ROUTE_ALL
See Also:
Constant Field Values

AUDIO_STATUS_OK

public static final int AUDIO_STATUS_OK
See Also:
Constant Field Values

AUDIO_STATUS_ERROR

public static final int AUDIO_STATUS_ERROR
See Also:
Constant Field Values

AUDIO_STATUS_SERVER_DIED

public static final int AUDIO_STATUS_SERVER_DIED
See Also:
Constant Field Values
Constructor Detail

AudioSystem

public AudioSystem()
Method Detail

setVolume

public static int setVolume(int type,
                            int volume)

getVolume

public static int getVolume(int type)

muteMicrophone

public static int muteMicrophone(boolean on)

isMicrophoneMuted

public static boolean isMicrophoneMuted()

setMode

public static int setMode(int mode)

getMode

public static int getMode()

setRouting

public static int setRouting(int mode,
                             int routes,
                             int mask)

getRouting

public static int getRouting(int mode)

isMusicActive

public static boolean isMusicActive()

setParameter

public static void setParameter(String key,
                                String value)

setErrorCallback

public static void setErrorCallback(AudioSystem.ErrorCallback cb)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature