SoundPool音频流类型?

时间:2015-08-09 15:59:34

标签: android soundpool

我有一个问题。我可以在 SoundPoolActivity 上使用任何音频流类型(STREAM_MUSIC, STREAM_RING, STREAM_ALARM, STREAM_SYSTEM, etc..), 从示例中控制 SoundPool 音量,"报警音量"。使用

SoundPool = new SoundPool(1, AudioManager.STREAM_ALARM, 0);

1 个答案:

答案 0 :(得分:0)

STREAM_ALARM        The audio stream for alarms
STREAM_DTMF         The audio stream for DTMF Tones
STREAM_MUSIC        The audio stream for music playback
STREAM_NOTIFICATION The audio stream for notifications
STREAM_RING         The audio stream for the phone ring
STREAM_SYSTEM       The audio stream for system sounds
STREAM_VOICE_CALL   The audio stream for phone calls

请参阅此链接:https://stackoverflow.com/a/24655221/1660986http://developer.android.com/reference/android/media/AudioManager.html