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

Issue 2562593003: Add an optional artificial nearend signal for aecdump call recreation (Closed)

Created:
4 years ago by peah-webrtc
Modified:
4 years ago
Reviewers:
ivoc, hlundin-webrtc, aleloi
CC:
webrtc-reviews_webrtc.org, Andrew MacDonald, tterriberry_mozilla.com, audio-team_agora.io, kwiberg-webrtc, minyue-webrtc, the sun, aluebs-webrtc, bjornv1
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

When recreating a call based on an aecdump recording the nearend used is the one stored in the aecdump. During AEC development, it is handy to be able to simulate different doubletalk scenarios. This CL adds the ability to add an artificial nearend on top of that present in the aecdump, which allows for the developer to artificially customize the scenario being tested BUG=webrtc:6018 Committed: https://crrev.com/df80fd125989fae30eff04e8413d63178d98c3e5 Cr-Commit-Position: refs/heads/master@{#15502}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Corrected index #

Patch Set 3 : Removed unused variables #

Total comments: 12

Patch Set 4 : Changes in response to reviewer comments #

Total comments: 9

Patch Set 5 : Changes in response to reviewer comments #

Total comments: 2

Patch Set 6 : Changed DCHECK to CHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -3 lines) Patch
M webrtc/modules/audio_processing/test/aec_dump_based_simulator.h View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc View 1 2 3 4 5 3 chunks +49 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/test/audio_processing_simulator.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/audio_processing/test/audioproc_float.cc View 1 2 3 4 4 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (7 generated)
peah-webrtc
PTAL Thanks!
4 years ago (2016-12-08 10:31:29 UTC) #3
ivoc
https://codereview.webrtc.org/2562593003/diff/1/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc File webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc (right): https://codereview.webrtc.org/2562593003/diff/1/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc#newcode111 webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc:111: 32767 * artificial_nearend_buf_->channels()[0][k]); Shouldn't this be fwd_frame_.data[k]? Also, why ...
4 years ago (2016-12-08 10:55:20 UTC) #4
peah-webrtc
https://codereview.webrtc.org/2562593003/diff/1/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc File webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc (right): https://codereview.webrtc.org/2562593003/diff/1/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc#newcode111 webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc:111: 32767 * artificial_nearend_buf_->channels()[0][k]); On 2016/12/08 10:55:19, ivoc wrote: > ...
4 years ago (2016-12-08 12:02:26 UTC) #5
ivoc
One last question from my side. https://codereview.webrtc.org/2562593003/diff/1/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc File webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc (right): https://codereview.webrtc.org/2562593003/diff/1/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc#newcode111 webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc:111: 32767 * artificial_nearend_buf_->channels()[0][k]); ...
4 years ago (2016-12-08 12:13:24 UTC) #6
aleloi
https://codereview.webrtc.org/2562593003/diff/40001/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc File webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc (right): https://codereview.webrtc.org/2562593003/diff/40001/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc#newcode105 webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc:105: bool samples_left_to_process = const https://codereview.webrtc.org/2562593003/diff/40001/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc#newcode110 webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc:110: fwd_frame_.data_[k] += static_cast<int16_t>( ...
4 years ago (2016-12-08 13:00:55 UTC) #7
peah-webrtc
https://codereview.webrtc.org/2562593003/diff/1/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc File webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc (right): https://codereview.webrtc.org/2562593003/diff/1/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc#newcode111 webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc:111: 32767 * artificial_nearend_buf_->channels()[0][k]); On 2016/12/08 12:13:24, ivoc wrote: > ...
4 years ago (2016-12-09 07:19:25 UTC) #8
hlundin-webrtc
On 2016/12/09 07:19:25, peah-webrtc wrote: > https://codereview.webrtc.org/2562593003/diff/1/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc > File webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc (right): > > https://codereview.webrtc.org/2562593003/diff/1/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc#newcode111 > ...
4 years ago (2016-12-09 07:29:54 UTC) #9
hlundin-webrtc
LG. A few comments. https://codereview.webrtc.org/2562593003/diff/60001/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc File webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc (right): https://codereview.webrtc.org/2562593003/diff/60001/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc#newcode105 webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc:105: if (artificial_nearend_buffer_reader_->Read( If the file ...
4 years ago (2016-12-09 07:48:27 UTC) #10
peah-webrtc
On 2016/12/09 07:29:54, hlundin-webrtc wrote: > On 2016/12/09 07:19:25, peah-webrtc wrote: > > > https://codereview.webrtc.org/2562593003/diff/1/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc ...
4 years ago (2016-12-09 07:52:26 UTC) #11
peah-webrtc
https://codereview.webrtc.org/2562593003/diff/60001/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc File webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc (right): https://codereview.webrtc.org/2562593003/diff/60001/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc#newcode105 webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc:105: if (artificial_nearend_buffer_reader_->Read( On 2016/12/09 07:48:26, hlundin-webrtc wrote: > If ...
4 years ago (2016-12-09 08:07:51 UTC) #12
hlundin-webrtc
lgtm with one comment. https://codereview.webrtc.org/2562593003/diff/60001/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc File webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc (right): https://codereview.webrtc.org/2562593003/diff/60001/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc#newcode105 webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc:105: if (artificial_nearend_buffer_reader_->Read( On 2016/12/09 08:07:51, ...
4 years ago (2016-12-09 09:24:26 UTC) #13
ivoc
LGTM.
4 years ago (2016-12-09 09:28:15 UTC) #14
aleloi
LGTM! https://codereview.webrtc.org/2562593003/diff/40001/webrtc/modules/audio_processing/test/audioproc_float.cc File webrtc/modules/audio_processing/test/audioproc_float.cc (right): https://codereview.webrtc.org/2562593003/diff/40001/webrtc/modules/audio_processing/test/audioproc_float.cc#newcode419 webrtc/modules/audio_processing/test/audioproc_float.cc:419: processor.reset(new WavBasedSimulator(settings)); On 2016/12/09 07:19:25, peah-webrtc wrote: > ...
4 years ago (2016-12-09 10:09:24 UTC) #15
peah-webrtc
Thanks for the review! https://codereview.webrtc.org/2562593003/diff/80001/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc File webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc (right): https://codereview.webrtc.org/2562593003/diff/80001/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc#newcode232 webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc:232: RTC_DCHECK_EQ(1, artificial_nearend_file->num_channels()); On 2016/12/09 09:24:26, ...
4 years ago (2016-12-09 10:14:10 UTC) #16
peah-webrtc
Thanks for the review! https://codereview.webrtc.org/2562593003/diff/80001/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc File webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc (right): https://codereview.webrtc.org/2562593003/diff/80001/webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc#newcode232 webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc:232: RTC_DCHECK_EQ(1, artificial_nearend_file->num_channels()); On 2016/12/09 09:24:26, ...
4 years ago (2016-12-09 10:14:10 UTC) #17
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/2562593003/100001
4 years ago (2016-12-09 10:14:18 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-12-09 10:43:44 UTC) #23
commit-bot: I haz the power
4 years ago (2016-12-09 10:43:53 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/df80fd125989fae30eff04e8413d63178d98c3e5
Cr-Commit-Position: refs/heads/master@{#15502}

Powered by Google App Engine
This is Rietveld 408576698