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

Issue 93233003: Mute audio when volume is zero on Android. (Closed)

Created:
7 years ago by wjia(left Chromium)
Modified:
7 years ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Mute audio when volume is zero on Android. We are using Communication mode for audio backend on Android. By design, the platform voice volume never goes to zero. This patch uses ContentObserver to listen to volume change. When volume is set to zero, AudioManagerAndroid will mute all its output streams. BUG=263399 R=henrika@chromium.org, qinmin@chromium.org, tommi@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239007

Patch Set 1 #

Total comments: 20

Patch Set 2 : code review #

Patch Set 3 : rebase #

Total comments: 8

Patch Set 4 : tommi@'s comment #

Patch Set 5 : update findbugs_known_bugs.txt #

Patch Set 6 : henrika@'s comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -5 lines) Patch
M build/android/findbugs_filter/findbugs_known_bugs.txt View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M media/audio/android/audio_manager_android.h View 1 2 3 3 chunks +16 lines, -0 lines 0 comments Download
M media/audio/android/audio_manager_android.cc View 1 2 3 4 chunks +27 lines, -1 line 0 comments Download
M media/audio/android/opensles_output.h View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M media/audio/android/opensles_output.cc View 1 3 chunks +8 lines, -1 line 0 comments Download
M media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java View 1 2 6 chunks +75 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
wjia(left Chromium)
7 years ago (2013-11-28 00:29:49 UTC) #1
henrika (OOO until Aug 14)
Would appreciate if I jmtrivi@ could do the primary review (go first) here since I ...
7 years ago (2013-11-28 08:45:37 UTC) #2
tommi (sloooow) - chröme
https://codereview.chromium.org/93233003/diff/1/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/93233003/diff/1/media/audio/android/audio_manager_android.cc#newcode86 media/audio/android/audio_manager_android.cc:86: AudioOutputStream* AudioManagerAndroid::MakeAudioOutputStream( Can we DCHECK that all methods that ...
7 years ago (2013-12-02 18:35:57 UTC) #3
tommi (sloooow) - chröme
oh, and great work Wei! :)
7 years ago (2013-12-02 18:36:12 UTC) #4
wjia(left Chromium)
Thanks! PTAL. https://codereview.chromium.org/93233003/diff/1/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/93233003/diff/1/media/audio/android/audio_manager_android.cc#newcode86 media/audio/android/audio_manager_android.cc:86: AudioOutputStream* AudioManagerAndroid::MakeAudioOutputStream( On 2013/12/02 18:36:00, tommi wrote: ...
7 years ago (2013-12-02 21:49:49 UTC) #5
jmtrivi
https://codereview.chromium.org/93233003/diff/30001/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java File media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java (right): https://codereview.chromium.org/93233003/diff/30001/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java#newcode596 media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java:596: mContentResolver.registerContentObserver(Settings.System.CONTENT_URI, true, this); Be aware that this will be ...
7 years ago (2013-12-02 23:57:58 UTC) #6
tommi (sloooow) - chröme
https://codereview.chromium.org/93233003/diff/1/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/93233003/diff/1/media/audio/android/audio_manager_android.cc#newcode86 media/audio/android/audio_manager_android.cc:86: AudioOutputStream* AudioManagerAndroid::MakeAudioOutputStream( Ju On 2013/12/02 21:49:49, wjia wrote: > ...
7 years ago (2013-12-03 08:56:23 UTC) #7
henrika (OOO until Aug 14)
LGTM on cc-parts assuming latest input from tommi@ is fixed. Don't know the Java parts ...
7 years ago (2013-12-03 11:02:28 UTC) #8
wjia(left Chromium)
Thanks, Jean-Michel! Could you shed some light on why AudioManager.getStreamVolume() could return 3 different results ...
7 years ago (2013-12-03 23:08:05 UTC) #9
wjia(left Chromium)
PTAL. Thanks! https://codereview.chromium.org/93233003/diff/1/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/93233003/diff/1/media/audio/android/audio_manager_android.cc#newcode86 media/audio/android/audio_manager_android.cc:86: AudioOutputStream* AudioManagerAndroid::MakeAudioOutputStream( On 2013/12/03 08:56:24, tommi wrote: ...
7 years ago (2013-12-04 00:53:29 UTC) #10
tommi (sloooow) - chröme
Thanks Wei. Lgtm.
7 years ago (2013-12-04 08:55:31 UTC) #11
qinmin
lgtm
7 years ago (2013-12-05 17:28:32 UTC) #12
wjia(left Chromium)
7 years ago (2013-12-05 19:10:30 UTC) #13
Message was sent while issue was closed.
Committed patchset #6 manually as r239007 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698