安卓10的所有原生音频通道

/* Used to identify the volume of audio streams for phone calls /

public static final int STREAM_VOICE_CALL = AudioSystem.STREAM_VOICE_CALL;   通话
/** Used to identify the volume of audio streams for system sounds */  
public static final int STREAM_SYSTEM = AudioSystem.STREAM_SYSTEM;           系统
/** Used to identify the volume of audio streams for the phone ring */
public static final int STREAM_RING = AudioSystem.STREAM_RING;               来电铃声
/** Used to identify the volume of audio streams for music playback */
public static final int STREAM_MUSIC = AudioSystem.STREAM_MUSIC;             音频流
/** Used to identify the volume of audio streams for alarms */
public static final int STREAM_ALARM = AudioSystem.STREAM_ALARM;             闹钟
/** Used to identify the volume of audio streams for notifications */        
public static final int STREAM_NOTIFICATION = AudioSystem.STREAM_NOTIFICATION;      通知
/** @hide Used to identify the volume of audio streams for phone calls when connected
 *        to bluetooth */
public static final int STREAM_BLUETOOTH_SCO = AudioSystem.STREAM_BLUETOOTH_SCO;    蓝牙通话
/** @hide Used to identify the volume of audio streams for enforced system sounds
 *        in certain countries (e.g camera in Japan) */
public static final int STREAM_SYSTEM_ENFORCED = AudioSystem.STREAM_SYSTEM_ENFORCED;   系统强制音(低电量提醒)
/** Used to identify the volume of audio streams for DTMF Tones */
public static final int STREAM_DTMF = AudioSystem.STREAM_DTMF;       电话拨号盘
/** @hide Used to identify the volume of audio streams exclusively transmitted through the
 *        speaker (TTS) of the device */
public static final int STREAM_TTS = AudioSystem.STREAM_TTS;      TTS语音播报
最后修改:2021 年 08 月 18 日 09 : 57 PM
如果觉得我的文章对你有用,请随意赞赏