android.media
Class AudioSystem
java.lang.Object
android.media.AudioSystem
public class AudioSystem
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AudioSystem
public AudioSystem()
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)
Please submit a feedback, bug or feature