English | Site Directory

Android - An Open Handset Alliance Project

android.media
public class

android.media.AudioSystem

java.lang.Object
android.media.AudioSystem

Summary

Constants

      Value  
int  MAX_VOLUME    100  0x00000064 
int  MIN_VOLUME    0x00000000 
int  ROUTE_BT_HEADSET    256  0x00000100 
int  ROUTE_BT_HEADSET_MIC    0x00000004 
int  ROUTE_DMA    16  0x00000010 
int  ROUTE_DOWNLINK_VOICE    0x00000008 
int  ROUTE_HEADSET    128  0x00000080 
int  ROUTE_HEADSET_MIC    0x00000002 
int  ROUTE_INT_MIC    0x00000001 
int  ROUTE_RECEIVER    32  0x00000020 
int  ROUTE_SPEAKER    64  0x00000040 
int  ROUTE_UPLINK_VOICE    512  0x00000200 
int  SRC_VOICE_CALL    16  0x00000010 
int  STREAM_DEFAULT    0x00000004 
int  STREAM_MUSIC    0x00000003 
int  STREAM_RING    0x00000002 
int  STREAM_SYSTEM    0x00000001 
int  STREAM_VOICE_CALL    0x00000000 

Public Constructors

          AudioSystem()

Public Methods

      static  void  bluetoothSco(boolean on)
      static  int  getVolume(int type)
      static  boolean  isBluetoothScoOn()
      static  boolean  isMicrophoneMuted()
      static  boolean  isSpeakerphoneOn()
      static  void  muteMicrophone(boolean on)
      static  void  setVolume(int type, int volume)
      static  void  speakerphone(boolean on)
      static  void  stayAwake(boolean awake)
Methods inherited from class java.lang.Object

Details

Constants

public static final int MAX_VOLUME

Constant Value: 100 (0x00000064)

public static final int MIN_VOLUME

Constant Value: 0 (0x00000000)

public static final int ROUTE_BT_HEADSET

Constant Value: 256 (0x00000100)

public static final int ROUTE_BT_HEADSET_MIC

Constant Value: 4 (0x00000004)

public static final int ROUTE_DMA

Constant Value: 16 (0x00000010)

public static final int ROUTE_DOWNLINK_VOICE

Constant Value: 8 (0x00000008)

public static final int ROUTE_HEADSET

Constant Value: 128 (0x00000080)

public static final int ROUTE_HEADSET_MIC

Constant Value: 2 (0x00000002)

public static final int ROUTE_INT_MIC

Constant Value: 1 (0x00000001)

public static final int ROUTE_RECEIVER

Constant Value: 32 (0x00000020)

public static final int ROUTE_SPEAKER

Constant Value: 64 (0x00000040)

public static final int ROUTE_UPLINK_VOICE

Constant Value: 512 (0x00000200)

public static final int SRC_VOICE_CALL

Constant Value: 16 (0x00000010)

public static final int STREAM_DEFAULT

Constant Value: 4 (0x00000004)

public static final int STREAM_MUSIC

Constant Value: 3 (0x00000003)

public static final int STREAM_RING

Constant Value: 2 (0x00000002)

public static final int STREAM_SYSTEM

Constant Value: 1 (0x00000001)

public static final int STREAM_VOICE_CALL

Constant Value: 0 (0x00000000)

Public Constructors

public AudioSystem()

Public Methods

public static void bluetoothSco(boolean on)

public static int getVolume(int type)

public static boolean isBluetoothScoOn()

public static boolean isMicrophoneMuted()

public static boolean isSpeakerphoneOn()

public static void muteMicrophone(boolean on)

public static void setVolume(int type, int volume)

public static void speakerphone(boolean on)

public static void stayAwake(boolean awake)

Build m5-rc15g - 14 May 2008 12:50