【问题标题】:SoundPool audio stream type?SoundPool 音频流类型?
【发布时间】: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);

【问题讨论】:

    标签: android soundpool


    【解决方案1】:
    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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-09-29
      • 2011-05-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多