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

Issue 1753663002: Add volume control for windows host (Closed)

Created:
4 years, 9 months ago by Hzj_jie
Modified:
4 years, 9 months ago
Reviewers:
Sergey Ulanov, joedow
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add volume control for windows host BUG=276753 Committed: https://crrev.com/3ba26c009b0b2583562b695c426391f71b626f33 Cr-Commit-Position: refs/heads/master@{#380458}

Patch Set 1 #

Patch Set 2 : Slightly refector logic, kBytesPerSample is not so useful, we cannot change it without impacting ot… #

Patch Set 3 : fixup a warning (signed / unsigned mismatch) #

Total comments: 19

Patch Set 4 : Add IsMuted function to separate logic in DoCapture #

Patch Set 5 : COMPILE_ASSERT is not supported by chromium codebase #

Patch Set 6 : A typo #

Patch Set 7 : Use static_assert, since this file is for windows only (we are using vs 2013) #

Patch Set 8 : sync latest code #

Total comments: 23

Patch Set 9 : Resolve code review comments #

Total comments: 19

Patch Set 10 : Resolve review comments #

Total comments: 2

Patch Set 11 : Executing silence detector before applying volume #

Total comments: 4

Patch Set 12 : Do not call GetAudioLevel unless SilenceDetector does not mark the samples as silence #

Patch Set 13 : Sync latest code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -12 lines) Patch
M remoting/host/audio_capturer_win.h View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -0 lines 0 comments Download
M remoting/host/audio_capturer_win.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +75 lines, -12 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
Sergey Ulanov
https://codereview.chromium.org/1753663002/diff/40001/remoting/host/audio_capturer_win.cc File remoting/host/audio_capturer_win.cc (right): https://codereview.chromium.org/1753663002/diff/40001/remoting/host/audio_capturer_win.cc#newcode21 remoting/host/audio_capturer_win.cc:21: // Following logic expects kBytesPerSample always be 2. I ...
4 years, 9 months ago (2016-03-01 21:48:17 UTC) #2
joedow
https://codereview.chromium.org/1753663002/diff/40001/remoting/host/audio_capturer_win.cc File remoting/host/audio_capturer_win.cc (right): https://codereview.chromium.org/1753663002/diff/40001/remoting/host/audio_capturer_win.cc#newcode198 remoting/host/audio_capturer_win.cc:198: // Initialize ISampleAudioVolume. TODO(zijiehe): Do we need to control ...
4 years, 9 months ago (2016-03-01 22:38:41 UTC) #4
Hzj_jie
I believe android_chromium_gn_compile_rel fatal totally does not relate to this CL, would you mind to ...
4 years, 9 months ago (2016-03-02 08:16:33 UTC) #5
joedow
https://codereview.chromium.org/1753663002/diff/140001/remoting/host/audio_capturer_win.cc File remoting/host/audio_capturer_win.cc (right): https://codereview.chromium.org/1753663002/diff/140001/remoting/host/audio_capturer_win.cc#newcode216 remoting/host/audio_capturer_win.cc:216: bool AudioCapturerWin::IsMuted(float* level) { Couldn't this function return a ...
4 years, 9 months ago (2016-03-02 15:25:52 UTC) #6
Sergey Ulanov
https://codereview.chromium.org/1753663002/diff/40001/remoting/host/audio_capturer_win.cc File remoting/host/audio_capturer_win.cc (right): https://codereview.chromium.org/1753663002/diff/40001/remoting/host/audio_capturer_win.cc#newcode260 remoting/host/audio_capturer_win.cc:260: samples[i] *= level; On 2016/03/02 08:16:32, Hzj_jie wrote: > ...
4 years, 9 months ago (2016-03-02 20:09:40 UTC) #7
Hzj_jie
Resolve code review comments https://codereview.chromium.org/1753663002/diff/40001/remoting/host/audio_capturer_win.cc File remoting/host/audio_capturer_win.cc (right): https://codereview.chromium.org/1753663002/diff/40001/remoting/host/audio_capturer_win.cc#newcode260 remoting/host/audio_capturer_win.cc:260: samples[i] *= level; On 2016/03/02 ...
4 years, 9 months ago (2016-03-03 09:33:39 UTC) #8
joedow
https://codereview.chromium.org/1753663002/diff/160001/remoting/host/audio_capturer_win.cc File remoting/host/audio_capturer_win.cc (right): https://codereview.chromium.org/1753663002/diff/160001/remoting/host/audio_capturer_win.cc#newcode220 remoting/host/audio_capturer_win.cc:220: return 1; Is there an advantage to returning an ...
4 years, 9 months ago (2016-03-04 16:46:10 UTC) #9
Sergey Ulanov
https://codereview.chromium.org/1753663002/diff/140001/remoting/host/audio_capturer_win.cc File remoting/host/audio_capturer_win.cc (right): https://codereview.chromium.org/1753663002/diff/140001/remoting/host/audio_capturer_win.cc#newcode269 remoting/host/audio_capturer_win.cc:269: if (!silence_detector_.IsSilence(samples, sample_count)) { On 2016/03/03 09:33:39, Hzj_jie wrote: ...
4 years, 9 months ago (2016-03-04 21:30:03 UTC) #10
Hzj_jie
https://codereview.chromium.org/1753663002/diff/140001/remoting/host/audio_capturer_win.cc File remoting/host/audio_capturer_win.cc (right): https://codereview.chromium.org/1753663002/diff/140001/remoting/host/audio_capturer_win.cc#newcode269 remoting/host/audio_capturer_win.cc:269: if (!silence_detector_.IsSilence(samples, sample_count)) { On 2016/03/04 21:30:03, Sergey Ulanov ...
4 years, 9 months ago (2016-03-09 19:47:57 UTC) #11
Sergey Ulanov
https://codereview.chromium.org/1753663002/diff/180001/remoting/host/audio_capturer_win.cc File remoting/host/audio_capturer_win.cc (right): https://codereview.chromium.org/1753663002/diff/180001/remoting/host/audio_capturer_win.cc#newcode265 remoting/host/audio_capturer_win.cc:265: if (silence_detector_.IsSilence(samples, sample_count)) { I still think this should ...
4 years, 9 months ago (2016-03-10 01:13:40 UTC) #12
Hzj_jie
https://codereview.chromium.org/1753663002/diff/180001/remoting/host/audio_capturer_win.cc File remoting/host/audio_capturer_win.cc (right): https://codereview.chromium.org/1753663002/diff/180001/remoting/host/audio_capturer_win.cc#newcode265 remoting/host/audio_capturer_win.cc:265: if (silence_detector_.IsSilence(samples, sample_count)) { On 2016/03/10 01:13:40, Sergey Ulanov ...
4 years, 9 months ago (2016-03-10 01:58:59 UTC) #13
Sergey Ulanov
LGTM, but see my nits https://codereview.chromium.org/1753663002/diff/200001/remoting/host/audio_capturer_win.cc File remoting/host/audio_capturer_win.cc (right): https://codereview.chromium.org/1753663002/diff/200001/remoting/host/audio_capturer_win.cc#newcode256 remoting/host/audio_capturer_win.cc:256: size_t sample_count = frames ...
4 years, 9 months ago (2016-03-10 06:04:29 UTC) #14
Hzj_jie
https://codereview.chromium.org/1753663002/diff/200001/remoting/host/audio_capturer_win.cc File remoting/host/audio_capturer_win.cc (right): https://codereview.chromium.org/1753663002/diff/200001/remoting/host/audio_capturer_win.cc#newcode256 remoting/host/audio_capturer_win.cc:256: size_t sample_count = frames * kChannels; On 2016/03/10 06:04:28, ...
4 years, 9 months ago (2016-03-10 18:30:41 UTC) #15
Sergey Ulanov
lgtm
4 years, 9 months ago (2016-03-10 18:32:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1753663002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1753663002/240001
4 years, 9 months ago (2016-03-10 19:22:53 UTC) #19
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 9 months ago (2016-03-10 20:49:37 UTC) #20
commit-bot: I haz the power
4 years, 9 months ago (2016-03-10 20:50:53 UTC) #22
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/3ba26c009b0b2583562b695c426391f71b626f33
Cr-Commit-Position: refs/heads/master@{#380458}

Powered by Google App Engine
This is Rietveld 408576698