DescriptionEnable audio volume control on Android.
This is done by setting stream to VOICE which is the only stream type hooking up volume control automatically.
It's required to use matching audio mode and stream type. Otherwise, the volume control doesn't work. That means we have to use same mode
for both WebAudio and WebRTC. This leads to the change in audio_manager_android.cc which sets audio to communication mode so that OpenSL
stream can use VOICE stream type to adjust volume.
Contributed by leozwang@chromium.org (original patch https://chromiumcodereview.appspot.com/12806009/)
TBR=fischman@chromium.org
BUG=222393, 243506
TEST=run https://apprtc.appspot.com/?debug=loopback on Google Android devices, e.g., Galaxy Nexus, Nexus4. The volume can be changed with the volume key. Also run some WebAudio test samples, e.g., https://developer.cdn.mozilla.net/media/uploads/demos/b/o/boblemarin/bf84de2482b5c2e1a869089fad3de56e/3eat5urfin9_1362006031_demo_package/index.html.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207921
Patch Set 1 #Patch Set 2 : #Patch Set 3 : fix webaudio #Patch Set 4 : rebase and update description #
Messages
Total messages: 2 (0 generated)
|