【发布时间】:2015-08-09 15:59:33
【问题描述】:
我有一个问题。我可以在我的 SoundPoolActivity 上使用任何音频流类型(STREAM_MUSIC, STREAM_RING, STREAM_ALARM, STREAM_SYSTEM, etc..),
从例如“警报音量”控制 SoundPool 音量。使用
SoundPool = new SoundPool(1, AudioManager.STREAM_ALARM, 0);
【问题讨论】:
我有一个问题。我可以在我的 SoundPoolActivity 上使用任何音频流类型(STREAM_MUSIC, STREAM_RING, STREAM_ALARM, STREAM_SYSTEM, etc..),
从例如“警报音量”控制 SoundPool 音量。使用
SoundPool = new SoundPool(1, AudioManager.STREAM_ALARM, 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/1660986 和 http://developer.android.com/reference/android/media/AudioManager.html
【讨论】: