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

Issue 2073223003: [Chromecast] Use perceptually linear scaling for stream volumes (Closed)

Created:
4 years, 6 months ago by jyw
Modified:
4 years, 6 months ago
Reviewers:
igorc, kmackay, halliwell, alokp
CC:
chromium-reviews, alokp+watch_chromium.org, lcwu+watch_chromium.org, halliwell+watch_chromium.org, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromecast] Use perceptually linear scaling for stream volumes SetVolumeMultiplier(0.5) should give audio that sounds half as loud as SetVolumeMultiplier(1.0). BUG=internal b/29253848 TEST=manual Committed: https://crrev.com/42e51772feb06a971921e4cfcd89ba7661cdf22a Cr-Commit-Position: refs/heads/master@{#401149}

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove last layer of clamping #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -7 lines) Patch
M chromecast/media/cma/backend/alsa/stream_mixer_alsa_input_impl.cc View 1 1 chunk +8 lines, -7 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
jyw
4 years, 6 months ago (2016-06-17 21:51:05 UTC) #3
kmackay
https://codereview.chromium.org/2073223003/diff/1/chromecast/media/cma/backend/alsa/stream_mixer_alsa_input_impl.cc File chromecast/media/cma/backend/alsa/stream_mixer_alsa_input_impl.cc (right): https://codereview.chromium.org/2073223003/diff/1/chromecast/media/cma/backend/alsa/stream_mixer_alsa_input_impl.cc#newcode484 chromecast/media/cma/backend/alsa/stream_mixer_alsa_input_impl.cc:484: return std::max(0.0f, std::min(powf(volume_level, 0.5f * log2(10.0f)), 1.0f)); Is it ...
4 years, 6 months ago (2016-06-17 21:59:54 UTC) #4
jyw
On 2016/06/17 21:59:54, kmackay wrote: > https://codereview.chromium.org/2073223003/diff/1/chromecast/media/cma/backend/alsa/stream_mixer_alsa_input_impl.cc > File chromecast/media/cma/backend/alsa/stream_mixer_alsa_input_impl.cc (right): > > https://codereview.chromium.org/2073223003/diff/1/chromecast/media/cma/backend/alsa/stream_mixer_alsa_input_impl.cc#newcode484 > ...
4 years, 6 months ago (2016-06-17 22:03:44 UTC) #5
kmackay
On 2016/06/17 22:03:44, jyw wrote: > On 2016/06/17 21:59:54, kmackay wrote: > > > https://codereview.chromium.org/2073223003/diff/1/chromecast/media/cma/backend/alsa/stream_mixer_alsa_input_impl.cc ...
4 years, 6 months ago (2016-06-17 22:06:06 UTC) #6
jyw
https://codereview.chromium.org/2073223003/diff/1/chromecast/media/cma/backend/alsa/stream_mixer_alsa_input_impl.cc File chromecast/media/cma/backend/alsa/stream_mixer_alsa_input_impl.cc (right): https://codereview.chromium.org/2073223003/diff/1/chromecast/media/cma/backend/alsa/stream_mixer_alsa_input_impl.cc#newcode484 chromecast/media/cma/backend/alsa/stream_mixer_alsa_input_impl.cc:484: return std::max(0.0f, std::min(powf(volume_level, 0.5f * log2(10.0f)), 1.0f)); On 2016/06/17 ...
4 years, 6 months ago (2016-06-20 16:53:02 UTC) #7
kmackay
lgtm
4 years, 6 months ago (2016-06-20 16:53:48 UTC) #8
kmackay
4 years, 6 months ago (2016-06-20 16:54:11 UTC) #10
halliwell
On 2016/06/20 16:54:11, kmackay wrote: lgtm
4 years, 6 months ago (2016-06-20 20:29:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2073223003/20001
4 years, 6 months ago (2016-06-21 23:21:44 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-22 00:44:40 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/42e51772feb06a971921e4cfcd89ba7661cdf22a Cr-Commit-Position: refs/heads/master@{#401149}
4 years, 6 months ago (2016-06-22 00:47:30 UTC) #17
kmackay
4 years, 5 months ago (2016-06-27 03:24:50 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2100733002/ by kmackay@chromium.org.

The reason for reverting is: I think we should actually leave the per-stream
volume multiplier as linear, and leave it up to whatever sets that multiplier to
map correctly from user input to the desired volume curve. Otherwise, we tie the
mixer implementation to a specific volume curve, which is looking less and less
plausible (particularly since it is used with OEM devices that have an unknown
volume curve)..

Powered by Google App Engine
This is Rietveld 408576698