Search code examples
androidstreamphone-callvoice

Difference between STREAM_VOICE_CALL and STREAM_RING


I'm currently trying to modify the volume-settings of a phone. So, I came up to the methods I need, but now I'm not understanding the difference between STREAM_VOICE_CALL and STREAM_RING.

It's clear what STREAM_VOICE_CALL is for, but shouldn't STREAM_RING be totally useless then? Or is it a "ring" which rings when a new message arrived, or if you're just browsing your ringtones?


Solution

  • The AudioManager docs say:

    STREAM_RING        The audio stream for the phone ring
    STREAM_VOICE_CALL  The audio stream for phone calls
    

    So presumably, the STREAM_RING stream volume control would influence how strong the phone rings when it needs to ring (say to signal an incoming phone call).

    The STREAM_VOICE_CALL influences the phone call itself (the voice volume).