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

Issue 2405403003: Add empty residual echo detector. (Closed)

Created:
4 years, 2 months ago by ivoc
Modified:
4 years, 1 month ago
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

Add empty residual echo detector. This CL does not contain the actual algorithm, but only creates an empty processing component and connects the right signals to it. The algorithm will be added in a follow-up CL. BUG=webrtc:6525 Committed: https://crrev.com/9f4a4a096bf11e26ce6446620dcd3dd825807d3e Cr-Commit-Position: refs/heads/master@{#14820}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Removed forward declaration. #

Total comments: 33

Patch Set 3 : Addressed reviewer comments. #

Total comments: 9

Patch Set 4 : Moved responsibility for proper locking to APM. #

Total comments: 9

Patch Set 5 : Addressed review comments. #

Patch Set 6 : Refactored this CL to use the new locking/buffering scheme. #

Patch Set 7 : Removed echo_detector/echo_detector.{h,cc} #

Patch Set 8 : Small update to comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -2 lines) Patch
M webrtc/modules/audio_processing/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_impl.h View 1 2 3 4 5 6 chunks +12 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_impl.cc View 1 2 3 4 5 6 14 chunks +60 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/include/audio_processing.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/residual_echo_detector.h View 1 2 3 4 5 6 7 1 chunk +47 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/residual_echo_detector.cc View 1 2 3 4 5 6 1 chunk +52 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 33 (6 generated)
ivoc
Hi guys, Please have a look at this initial CL to add an empty residual ...
4 years, 2 months ago (2016-10-12 15:40:14 UTC) #3
peah-webrtc
On 2016/10/12 15:40:14, ivoc wrote: > Hi guys, > > Please have a look at ...
4 years, 2 months ago (2016-10-13 10:10:56 UTC) #4
peah-webrtc
On 2016/10/12 15:40:14, ivoc wrote: > Hi guys, > > Please have a look at ...
4 years, 2 months ago (2016-10-13 10:10:57 UTC) #5
peah-webrtc
https://codereview.webrtc.org/2405403003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2405403003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode228 webrtc/modules/audio_processing/audio_processing_impl.cc:228: std::unique_ptr<ResidualEchoDetector> residual_echo_detector; It would be better to place this ...
4 years, 2 months ago (2016-10-13 10:11:17 UTC) #6
ivoc
Thanks for the quick review! https://codereview.webrtc.org/2405403003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2405403003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode228 webrtc/modules/audio_processing/audio_processing_impl.cc:228: std::unique_ptr<ResidualEchoDetector> residual_echo_detector; On 2016/10/13 ...
4 years, 2 months ago (2016-10-13 10:31:25 UTC) #7
peah-webrtc
https://codereview.webrtc.org/2405403003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2405403003/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode228 webrtc/modules/audio_processing/audio_processing_impl.cc:228: std::unique_ptr<ResidualEchoDetector> residual_echo_detector; On 2016/10/13 10:31:25, ivoc wrote: > On ...
4 years, 2 months ago (2016-10-13 10:50:28 UTC) #8
hlundin-webrtc
LG, but please, see comments. https://codereview.webrtc.org/2405403003/diff/20001/webrtc/modules/audio_processing/echo_detector/echo_detector.cc File webrtc/modules/audio_processing/echo_detector/echo_detector.cc (right): https://codereview.webrtc.org/2405403003/diff/20001/webrtc/modules/audio_processing/echo_detector/echo_detector.cc#newcode17 webrtc/modules/audio_processing/echo_detector/echo_detector.cc:17: // TODO(ivoc): Add implementation. ...
4 years, 2 months ago (2016-10-13 11:45:20 UTC) #9
ivoc
https://codereview.webrtc.org/2405403003/diff/20001/webrtc/modules/audio_processing/echo_detector/echo_detector.cc File webrtc/modules/audio_processing/echo_detector/echo_detector.cc (right): https://codereview.webrtc.org/2405403003/diff/20001/webrtc/modules/audio_processing/echo_detector/echo_detector.cc#newcode17 webrtc/modules/audio_processing/echo_detector/echo_detector.cc:17: // TODO(ivoc): Add implementation. On 2016/10/13 11:45:20, hlundin-webrtc wrote: ...
4 years, 2 months ago (2016-10-13 13:46:16 UTC) #10
hlundin-webrtc
I'd like peah to weigh in on the locking structure. https://codereview.webrtc.org/2405403003/diff/20001/webrtc/modules/audio_processing/echo_detector/echo_detector.cc File webrtc/modules/audio_processing/echo_detector/echo_detector.cc (right): https://codereview.webrtc.org/2405403003/diff/20001/webrtc/modules/audio_processing/echo_detector/echo_detector.cc#newcode17 ...
4 years, 2 months ago (2016-10-14 06:59:18 UTC) #11
peah-webrtc
https://codereview.webrtc.org/2405403003/diff/20001/webrtc/modules/audio_processing/residual_echo_detector.h File webrtc/modules/audio_processing/residual_echo_detector.h (right): https://codereview.webrtc.org/2405403003/diff/20001/webrtc/modules/audio_processing/residual_echo_detector.h#newcode31 webrtc/modules/audio_processing/residual_echo_detector.h:31: ResidualEchoDetector(rtc::CriticalSection* crit_render, On 2016/10/13 13:46:16, ivoc wrote: > On ...
4 years, 2 months ago (2016-10-14 07:12:29 UTC) #12
hlundin-webrtc
https://codereview.webrtc.org/2405403003/diff/40001/webrtc/modules/audio_processing/echo_detector/echo_detector.h File webrtc/modules/audio_processing/echo_detector/echo_detector.h (right): https://codereview.webrtc.org/2405403003/diff/40001/webrtc/modules/audio_processing/echo_detector/echo_detector.h#newcode23 webrtc/modules/audio_processing/echo_detector/echo_detector.h:23: void BufferFarend(const float* farend, size_t num_samples); I think you ...
4 years, 2 months ago (2016-10-14 07:15:53 UTC) #13
kwiberg-webrtc
https://codereview.webrtc.org/2405403003/diff/40001/webrtc/modules/audio_processing/echo_detector/echo_detector.h File webrtc/modules/audio_processing/echo_detector/echo_detector.h (right): https://codereview.webrtc.org/2405403003/diff/40001/webrtc/modules/audio_processing/echo_detector/echo_detector.h#newcode23 webrtc/modules/audio_processing/echo_detector/echo_detector.h:23: void BufferFarend(const float* farend, size_t num_samples); On 2016/10/14 07:15:52, ...
4 years, 2 months ago (2016-10-14 07:28:49 UTC) #14
ivoc
Thanks for the comments. I have now removed the locking from the ResidualEchoDetector class, which ...
4 years, 2 months ago (2016-10-14 09:53:19 UTC) #15
hlundin-webrtc
https://codereview.webrtc.org/2405403003/diff/60001/webrtc/modules/audio_processing/echo_detector/echo_detector.h File webrtc/modules/audio_processing/echo_detector/echo_detector.h (right): https://codereview.webrtc.org/2405403003/diff/60001/webrtc/modules/audio_processing/echo_detector/echo_detector.h#newcode24 webrtc/modules/audio_processing/echo_detector/echo_detector.h:24: void BufferFarend(const rtc::ArrayView<const float>& farend); The typical pattern is ...
4 years, 2 months ago (2016-10-14 12:36:22 UTC) #16
kwiberg-webrtc
https://codereview.webrtc.org/2405403003/diff/60001/webrtc/modules/audio_processing/echo_detector/echo_detector.h File webrtc/modules/audio_processing/echo_detector/echo_detector.h (right): https://codereview.webrtc.org/2405403003/diff/60001/webrtc/modules/audio_processing/echo_detector/echo_detector.h#newcode24 webrtc/modules/audio_processing/echo_detector/echo_detector.h:24: void BufferFarend(const rtc::ArrayView<const float>& farend); On 2016/10/14 12:36:21, hlundin-webrtc ...
4 years, 2 months ago (2016-10-14 13:15:24 UTC) #17
peah-webrtc
https://codereview.webrtc.org/2405403003/diff/60001/webrtc/modules/audio_processing/residual_echo_detector.cc File webrtc/modules/audio_processing/residual_echo_detector.cc (right): https://codereview.webrtc.org/2405403003/diff/60001/webrtc/modules/audio_processing/residual_echo_detector.cc#newcode21 webrtc/modules/audio_processing/residual_echo_detector.cc:21: int ResidualEchoDetector::AnalyzeRenderAudio(const AudioBuffer* audio) const { On 2016/10/14 12:36:21, ...
4 years, 2 months ago (2016-10-14 13:34:48 UTC) #18
hlundin-webrtc
On 2016/10/14 13:34:48, peah-webrtc wrote: > https://codereview.webrtc.org/2405403003/diff/60001/webrtc/modules/audio_processing/residual_echo_detector.cc > File webrtc/modules/audio_processing/residual_echo_detector.cc (right): > > https://codereview.webrtc.org/2405403003/diff/60001/webrtc/modules/audio_processing/residual_echo_detector.cc#newcode21 > ...
4 years, 2 months ago (2016-10-14 14:08:48 UTC) #19
ivoc
I'm leaving the locking issue for monday so we have a bit more time to ...
4 years, 2 months ago (2016-10-14 14:45:35 UTC) #20
hlundin-webrtc
I give you carte blanche regarding the locking issue. The rest of the CL LGTM.
4 years, 2 months ago (2016-10-14 21:07:00 UTC) #21
ivoc
I've made some significant changes to the CL to use the new locking/buffering scheme. Per, ...
4 years, 1 month ago (2016-10-27 15:46:04 UTC) #22
peah-webrtc
On 2016/10/27 15:46:04, ivoc wrote: > I've made some significant changes to the CL to ...
4 years, 1 month ago (2016-10-28 06:24:27 UTC) #23
ivoc
On 2016/10/28 06:24:27, peah-webrtc wrote: > On 2016/10/27 15:46:04, ivoc wrote: > > I've made ...
4 years, 1 month ago (2016-10-28 11:07:00 UTC) #24
peah-webrtc
On 2016/10/28 11:07:00, ivoc wrote: > On 2016/10/28 06:24:27, peah-webrtc wrote: > > On 2016/10/27 ...
4 years, 1 month ago (2016-10-28 12:15:19 UTC) #25
peah-webrtc
On 2016/10/28 11:07:00, ivoc wrote: > On 2016/10/28 06:24:27, peah-webrtc wrote: > > On 2016/10/27 ...
4 years, 1 month ago (2016-10-28 12:15:22 UTC) #26
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/2405403003/140001
4 years, 1 month ago (2016-10-28 12:16:11 UTC) #29
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-10-28 12:39:20 UTC) #31
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 12:39:30 UTC) #33
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/9f4a4a096bf11e26ce6446620dcd3dd825807d3e
Cr-Commit-Position: refs/heads/master@{#14820}

Powered by Google App Engine
This is Rietveld 408576698