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

Issue 940123004: Convert audio samples in Whispernet. (Closed)

Created:
5 years, 10 months ago by rkc
Modified:
5 years, 10 months ago
Reviewers:
Charlie, DaleCurtis
CC:
chromium-reviews, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert audio samples in Whispernet. Currently we record at the system default sample rate and convert it to the sample rate required by whispernet. This is no longer needed since Whispernet now accepts a "broadcast sample rate" which can be different than the encoding sample rate. To avoid the expensive resampling, we now need to pass the samples to Whispernet without conversion and tell whispernet what the recording sample rate was. Also change the tests to test this functionality. Reviews requested, ckehoe@ - General review. dalecurtis@ - DEPS review for //media R=ckehoe@chromium.org, dalecurtis@chromium.org BUG=454885 Committed: https://crrev.com/acb75a037014b791126cb5109da672325cd95203 Cr-Commit-Position: refs/heads/master@{#317411}

Patch Set 1 #

Total comments: 16

Patch Set 2 : #

Patch Set 3 : remove unused define #

Patch Set 4 : test fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -122 lines) Patch
A + chrome/browser/copresence/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/browser/copresence/chrome_whispernet_client.cc View 1 3 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/copresence/chrome_whispernet_client_browsertest.cc View 1 2 9 chunks +93 lines, -16 lines 0 comments Download
M chrome/browser/copresence/chrome_whispernet_config.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/whispernet_proxy/whispernet_proxy.nmf.png View Binary file 0 comments Download
M chrome/browser/resources/whispernet_proxy/whispernet_proxy_pnacl.pexe.png View Binary file 0 comments Download
M components/audio_modem/audio_recorder_impl.h View 4 chunks +1 line, -12 lines 0 comments Download
M components/audio_modem/audio_recorder_impl.cc View 5 chunks +23 lines, -65 lines 0 comments Download
M components/audio_modem/audio_recorder_unittest.cc View 1 2 3 5 chunks +21 lines, -29 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
rkc
5 years, 10 months ago (2015-02-20 00:36:46 UTC) #1
Charlie
LGTM with comments. https://codereview.chromium.org/940123004/diff/1/chrome/browser/copresence/chrome_whispernet_client_browsertest.cc File chrome/browser/copresence/chrome_whispernet_client_browsertest.cc (right): https://codereview.chromium.org/940123004/diff/1/chrome/browser/copresence/chrome_whispernet_client_browsertest.cc#newcode90 chrome/browser/copresence/chrome_whispernet_client_browsertest.cc:90: coder_params_ = media::AudioParameters( nit: extra space ...
5 years, 10 months ago (2015-02-20 00:58:21 UTC) #2
Charlie
Please address igorp's comments in cl/86742707 and re-upload the binary. Please also put that CL ...
5 years, 10 months ago (2015-02-20 18:14:02 UTC) #3
DaleCurtis
https://codereview.chromium.org/940123004/diff/1/chrome/browser/copresence/chrome_whispernet_client_browsertest.cc File chrome/browser/copresence/chrome_whispernet_client_browsertest.cc (right): https://codereview.chromium.org/940123004/diff/1/chrome/browser/copresence/chrome_whispernet_client_browsertest.cc#newcode221 chrome/browser/copresence/chrome_whispernet_client_browsertest.cc:221: scoped_ptr<media::AudioBus> converted_source = media::AudioBus::Create( Why not just make a ...
5 years, 10 months ago (2015-02-20 18:31:42 UTC) #4
rkc
https://codereview.chromium.org/940123004/diff/1/chrome/browser/copresence/chrome_whispernet_client_browsertest.cc File chrome/browser/copresence/chrome_whispernet_client_browsertest.cc (right): https://codereview.chromium.org/940123004/diff/1/chrome/browser/copresence/chrome_whispernet_client_browsertest.cc#newcode90 chrome/browser/copresence/chrome_whispernet_client_browsertest.cc:90: coder_params_ = media::AudioParameters( On 2015/02/20 00:58:20, Charlie wrote: > ...
5 years, 10 months ago (2015-02-20 18:53:08 UTC) #6
DaleCurtis
lgtm
5 years, 10 months ago (2015-02-20 18:57:21 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/940123004/40001
5 years, 10 months ago (2015-02-20 19:06:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/940123004/60001
5 years, 10 months ago (2015-02-20 20:44:05 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-02-20 21:58:33 UTC) #13
commit-bot: I haz the power
5 years, 10 months ago (2015-02-20 21:59:11 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/acb75a037014b791126cb5109da672325cd95203
Cr-Commit-Position: refs/heads/master@{#317411}

Powered by Google App Engine
This is Rietveld 408576698