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

Issue 1272403003: Replaced the wav file dumping functionality in aec_core.c with the newly added corresponding macros (Closed)

Created:
5 years, 4 months ago by peah-webrtc
Modified:
5 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, Andrew MacDonald, tterriberry_mozilla.com, kwiberg-webrtc, aluebs-webrtc, bjornv1
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Added logging using the raw variant of the new aec logging macros Replaced the wav file dumping functionality in aec_core.c with the newly added corresponding macros Added macros for logging of AEC internal data BUG= Committed: https://crrev.com/9e69abf85eeae8b6e23170c189cf5dd155771a51 Cr-Commit-Position: refs/heads/master@{#9808}

Patch Set 1 #

Patch Set 2 : Added logging using the raw variant of the new aec logging macros #

Total comments: 41

Patch Set 3 : Added support for inclusion from C++ code #

Total comments: 98

Patch Set 4 : Code update according to reviewer comments #

Total comments: 2

Patch Set 5 : Updates according to comments. Also added BUILD.gn that were previously missing from the changeset #

Total comments: 7

Patch Set 6 : Introduced DCHECKs, moved to using safe functions from stringutils.h, changed to static_casts inste… #

Total comments: 20

Patch Set 7 : Updates according to comments #

Patch Set 8 : Updated the implementation of the extern C declaration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -42 lines) Patch
M webrtc/modules/audio_processing/BUILD.gn View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/aec/aec_core.c View 1 2 3 6 chunks +34 lines, -42 lines 0 comments Download
M webrtc/modules/audio_processing/aec/aec_core_internal.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing.gypi View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/logging/aec_logging.h View 1 2 3 4 1 chunk +86 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/logging/aec_logging_file_handling.h View 1 2 3 4 5 6 7 1 chunk +41 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/logging/aec_logging_file_handling.cc View 1 2 3 4 5 6 7 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (4 generated)
peah-webrtc
In order to be able to log internal data in the AEC I created and ...
5 years, 4 months ago (2015-08-07 12:42:04 UTC) #2
hlundin-webrtc
Nice. Please, see comments inline. https://codereview.webrtc.org/1272403003/diff/20001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.c File webrtc/modules/audio_processing/logging/aec_logging_file_handling.c (right): https://codereview.webrtc.org/1272403003/diff/20001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.c#newcode15 webrtc/modules/audio_processing/logging/aec_logging_file_handling.c:15: #include <stdint.h> Sort includes ...
5 years, 4 months ago (2015-08-10 13:04:41 UTC) #4
Andrew MacDonald
Ah, I noticed I repeated a bunch of Henrik's comments since I was looking at ...
5 years, 4 months ago (2015-08-10 15:25:55 UTC) #5
Andrew MacDonald
https://codereview.webrtc.org/1272403003/diff/20001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.c File webrtc/modules/audio_processing/logging/aec_logging_file_handling.c (right): https://codereview.webrtc.org/1272403003/diff/20001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.c#newcode26 webrtc/modules/audio_processing/logging/aec_logging_file_handling.c:26: void WebRtcAec_ReopenWav(rtc_WavWriter** wav_file, On 2015/08/10 13:04:40, hlundin-webrtc wrote: > ...
5 years, 4 months ago (2015-08-10 15:28:44 UTC) #6
kwiberg-webrtc
Looks good, but a few comments: https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/logging/aec_logging.h File webrtc/modules/audio_processing/logging/aec_logging.h (right): https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/logging/aec_logging.h#newcode24 webrtc/modules/audio_processing/logging/aec_logging.h:24: #endif You only ...
5 years, 4 months ago (2015-08-10 20:19:57 UTC) #7
the sun
https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/aec/aec_core.c File webrtc/modules/audio_processing/aec/aec_core.c (right): https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/aec/aec_core.c#newcode35 webrtc/modules/audio_processing/aec/aec_core.c:35: #include "webrtc/modules/audio_processing/logging/aec_logging.h" include order https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.c File webrtc/modules/audio_processing/logging/aec_logging_file_handling.c (right): https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.c#newcode12 ...
5 years, 4 months ago (2015-08-11 08:48:26 UTC) #8
hlundin-webrtc
(Two drafts I forgot to send.) https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/logging/aec_logging.h File webrtc/modules/audio_processing/logging/aec_logging.h (right): https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/logging/aec_logging.h#newcode52 webrtc/modules/audio_processing/logging/aec_logging.h:52: rtc_WavWriteSamples(file, data, numSamples); ...
5 years, 4 months ago (2015-08-12 11:48:18 UTC) #9
peah-webrtc
Thanks for the awesome reviews!!! I have accepted almost all changes and made the corresponding ...
5 years, 4 months ago (2015-08-12 20:25:53 UTC) #10
Andrew MacDonald
https://codereview.webrtc.org/1272403003/diff/20001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.c File webrtc/modules/audio_processing/logging/aec_logging_file_handling.c (right): https://codereview.webrtc.org/1272403003/diff/20001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.c#newcode26 webrtc/modules/audio_processing/logging/aec_logging_file_handling.c:26: void WebRtcAec_ReopenWav(rtc_WavWriter** wav_file, On 2015/08/12 20:25:51, peah-webrtc wrote: > ...
5 years, 4 months ago (2015-08-12 20:37:58 UTC) #11
hlundin-webrtc
https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.c File webrtc/modules/audio_processing/logging/aec_logging_file_handling.c (right): https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.c#newcode41 webrtc/modules/audio_processing/logging/aec_logging_file_handling.c:41: assert((size_t)written < sizeof(filename)); // buffer was large enough On ...
5 years, 4 months ago (2015-08-13 06:19:02 UTC) #12
kwiberg-webrtc
https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/logging/aec_logging.h File webrtc/modules/audio_processing/logging/aec_logging.h (right): https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/logging/aec_logging.h#newcode33 webrtc/modules/audio_processing/logging/aec_logging.h:33: #define WEBRTC_AEC_DEBUG_WAV_REOPEN(wavFile, name, seq1, seq2, sampleRate) On 2015/08/12 20:25:52, ...
5 years, 4 months ago (2015-08-13 07:59:34 UTC) #13
peah-webrtc
Updated according to comments. As far as I know, the only remaining thing is whether ...
5 years, 4 months ago (2015-08-13 13:37:40 UTC) #14
hlundin-webrtc
lgtm, but I'll let you hash out the issue of macros vs. inlines with the ...
5 years, 4 months ago (2015-08-14 09:40:45 UTC) #15
peah-webrtc
Added below comment to the discussion regarding the choice between macros and inlined functions: After ...
5 years, 4 months ago (2015-08-17 09:36:16 UTC) #16
peah-webrtc
Added below comment to the discussion regarding the choice between macros and inlined functions: After ...
5 years, 4 months ago (2015-08-17 09:36:19 UTC) #17
kwiberg-webrtc
lgtm https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/logging/aec_logging.h File webrtc/modules/audio_processing/logging/aec_logging.h (right): https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/logging/aec_logging.h#newcode94 webrtc/modules/audio_processing/logging/aec_logging.h:94: #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_LOGGING_ On 2015/08/17 09:36:16, peah-webrtc wrote: ...
5 years, 4 months ago (2015-08-17 09:43:07 UTC) #18
hlundin-webrtc
On 2015/08/17 09:43:07, kwiberg-webrtc wrote: > lgtm > > https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/logging/aec_logging.h > File webrtc/modules/audio_processing/logging/aec_logging.h (right): > ...
5 years, 4 months ago (2015-08-17 09:46:52 UTC) #19
Andrew MacDonald
lgtm with a few nits. https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/logging/aec_logging.h File webrtc/modules/audio_processing/logging/aec_logging.h (right): https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/logging/aec_logging.h#newcode94 webrtc/modules/audio_processing/logging/aec_logging.h:94: #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_LOGGING_ On ...
5 years, 4 months ago (2015-08-17 16:37:06 UTC) #20
the sun
https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.c File webrtc/modules/audio_processing/logging/aec_logging_file_handling.c (right): https://codereview.webrtc.org/1272403003/diff/40001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.c#newcode56 webrtc/modules/audio_processing/logging/aec_logging_file_handling.c:56: assert((size_t)written < sizeof(filename)); // buffer was large enough On ...
5 years, 4 months ago (2015-08-24 11:04:46 UTC) #21
peah-webrtc
Hi, Again thanks for the comments. I've done changes according to the latest comments. In ...
5 years, 4 months ago (2015-08-25 05:05:29 UTC) #22
the sun
lgtm https://codereview.webrtc.org/1272403003/diff/100001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.cc File webrtc/modules/audio_processing/logging/aec_logging_file_handling.cc (right): https://codereview.webrtc.org/1272403003/diff/100001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.cc#newcode47 webrtc/modules/audio_processing/logging/aec_logging_file_handling.cc:47: int instance_counter, Is there a difference between instance_index ...
5 years, 4 months ago (2015-08-25 08:32:35 UTC) #23
kwiberg-webrtc
https://codereview.webrtc.org/1272403003/diff/100001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.cc File webrtc/modules/audio_processing/logging/aec_logging_file_handling.cc (right): https://codereview.webrtc.org/1272403003/diff/100001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.cc#newcode23 webrtc/modules/audio_processing/logging/aec_logging_file_handling.cc:23: extern "C" void WebRtcAec_ReopenWav(const char* name, You only need ...
5 years, 4 months ago (2015-08-25 09:04:43 UTC) #24
Andrew MacDonald
lgtm https://codereview.webrtc.org/1272403003/diff/100001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.cc File webrtc/modules/audio_processing/logging/aec_logging_file_handling.cc (right): https://codereview.webrtc.org/1272403003/diff/100001/webrtc/modules/audio_processing/logging/aec_logging_file_handling.cc#newcode23 webrtc/modules/audio_processing/logging/aec_logging_file_handling.cc:23: extern "C" void WebRtcAec_ReopenWav(const char* name, On 2015/08/25 ...
5 years, 4 months ago (2015-08-25 17:16:30 UTC) #25
peah-webrtc
Thanks again! Great feedback as always! I've revised accordingly and sent up a new patch. ...
5 years, 4 months ago (2015-08-26 07:24:25 UTC) #26
peah-webrtc
Sorry, my mistake, please hold on with the review. I just ran into an issue ...
5 years, 4 months ago (2015-08-26 07:26:58 UTC) #27
peah-webrtc
Now the previous issue is fixed. I submitted a new patch. Please feel free to ...
5 years, 4 months ago (2015-08-26 09:32:29 UTC) #28
kwiberg-webrtc
lgtm
5 years, 4 months ago (2015-08-26 09:40:49 UTC) #29
Andrew MacDonald
lgtm
5 years, 3 months ago (2015-08-26 16:42:14 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272403003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272403003/140001
5 years, 3 months ago (2015-08-28 09:20:56 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 3 months ago (2015-08-28 11:41:28 UTC) #34
commit-bot: I haz the power
5 years, 3 months ago (2015-08-28 11:41:39 UTC) #35
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/9e69abf85eeae8b6e23170c189cf5dd155771a51
Cr-Commit-Position: refs/heads/master@{#9808}

Powered by Google App Engine
This is Rietveld 408576698