Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Issue 2411263003: Android audio playout now supports non-call media streams (Closed)

Created:
4 years, 2 months ago by henrika_webrtc
Modified:
4 years, 2 months ago
Reviewers:
hlundin-webrtc
CC:
webrtc-reviews_webrtc.org
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Android audio playout now supports non-call media streams. The default (preferred) stream type for output audio is STREAM_VOICE_CALL since the WebRTC stack is mainly intended for VoIP calls. But if the user wants to run in another mode than COMM mode, we now accept it and change the stream type to STREAM_MUSIC instead. It can e.g. be suitable for applications that does not record audio or if a call shall be casted to a Chromecast device. The solution is somewhat experimental. NOTRY=TRUE BUG=webrtc:4767 Committed: https://crrev.com/872f614111f436d15e29516ce19c3b63d25b8639 Cr-Commit-Position: refs/heads/master@{#14613}

Patch Set 1 #

Patch Set 2 : nit #

Total comments: 2

Patch Set 3 : Adding support for SetCommunicationMode in AudioManager #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -3 lines) Patch
M webrtc/modules/audio_device/android/audio_device_unittest.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/audio_device/android/audio_manager.h View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M webrtc/modules/audio_device/android/audio_manager.cc View 1 2 3 chunks +13 lines, -0 lines 0 comments Download
M webrtc/modules/audio_device/android/audio_manager_unittest.cc View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java View 1 2 2 chunks +13 lines, -3 lines 0 comments Download
M webrtc/modules/audio_device/android/opensles_player.cc View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
henrika_webrtc
PTAL
4 years, 2 months ago (2016-10-12 12:28:05 UTC) #5
hlundin-webrtc
LGTM with one nit. https://codereview.webrtc.org/2411263003/diff/20001/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java File webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java (right): https://codereview.webrtc.org/2411263003/diff/20001/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java#newcode197 webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java:197: // e.g. be suitable for ...
4 years, 2 months ago (2016-10-12 12:58:41 UTC) #6
henrika_webrtc
Thanks! One more please. Had to add API to allow enabling COMM mode from unit ...
4 years, 2 months ago (2016-10-12 13:55:42 UTC) #7
henrika_webrtc
To clarify. Asking for one more round even if I already had l-g-t-m. Thanks.
4 years, 2 months ago (2016-10-12 14:50:58 UTC) #8
hlundin-webrtc
Still LGTM.
4 years, 2 months ago (2016-10-12 14:58:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2411263003/10004
4 years, 2 months ago (2016-10-12 15:00:35 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:10004)
4 years, 2 months ago (2016-10-12 15:11:45 UTC) #14
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/872f614111f436d15e29516ce19c3b63d25b8639 Cr-Commit-Position: refs/heads/master@{#14613}
4 years, 2 months ago (2016-10-12 15:11:54 UTC) #16
henrika_webrtc
4 years, 2 months ago (2016-10-13 08:12:20 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:10004) has been created in
https://codereview.webrtc.org/2420583002/ by henrika@webrtc.org.

The reason for reverting is: There is a risk of ending up in a bad state due to
race conditions with this patch. Tests in downstream clients have shown that it
can
happen that an output stream is opened up in MUSIC mode when it should not. 

Reverting since the new functionality added here is not worth the
risk of breaking existing clients..

Powered by Google App Engine
This is Rietveld 408576698