SoundPool 音频流类型?
SoundPool audio stream type?
我有一个问题。我可以在 SoundPoolActivity 上使用任何音频流类型 (STREAM_MUSIC, STREAM_RING, STREAM_ALARM, STREAM_SYSTEM, etc..)
吗?
从示例 "Alarm volume" 中控制 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
参考这个 link : and http://developer.android.com/reference/android/media/AudioManager.html
我有一个问题。我可以在 SoundPoolActivity 上使用任何音频流类型 (STREAM_MUSIC, STREAM_RING, STREAM_ALARM, STREAM_SYSTEM, etc..)
吗?
从示例 "Alarm volume" 中控制 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
参考这个 link : and http://developer.android.com/reference/android/media/AudioManager.html