Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | |
| 3 * | |
| 4 * Use of this source code is governed by a BSD-style license | |
| 5 * that can be found in the LICENSE file in the root of the source | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 | |
| 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_LOGGING_FILE_HANDLING_ | |
| 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_LOGGING_FILE_HANDLING_ | |
| 13 | |
| 14 // To enable AEC logging, run this command from trunk/ : | |
| 15 // python webrtc/build/gyp_webrtc -Daec_debug_dump=1 | |
|
Andrew MacDonald
2015/08/10 15:25:55
I would instead just say:
"To enable AEC logging,
peah-webrtc
2015/08/12 20:25:53
Done.
| |
| 16 #ifdef WEBRTC_AEC_DEBUG_DUMP | |
| 17 #include <stdio.h> | |
|
Andrew MacDonald
2015/08/10 15:25:55
nit: blank line after this.
peah-webrtc
2015/08/12 20:25:53
Done.
| |
| 18 #include "webrtc/common_audio/wav_file.h" | |
| 19 #include "webrtc/typedefs.h" | |
| 20 #endif | |
| 21 | |
| 22 #ifdef __cplusplus | |
| 23 extern "C" { | |
| 24 #endif | |
| 25 | |
| 26 #ifdef WEBRTC_AEC_DEBUG_DUMP | |
| 27 // (Re)open wav file using the specified sample rate | |
| 28 void WebRtcAec_ReopenWav(rtc_WavWriter** wav_file, | |
| 29 const char* const name, | |
| 30 const int seq1, | |
| 31 const int seq2, | |
| 32 const int sample_rate); | |
|
kwiberg-webrtc
2015/08/10 20:19:57
Marking parameters const in function declarations
peah-webrtc
2015/08/12 20:25:53
Done.
| |
| 33 | |
| 34 // Open dumpfile with instance-specific filename | |
| 35 void WebRtcAec_RawFileOpen(FILE** file, | |
| 36 const char * const name, | |
|
kwiberg-webrtc
2015/08/10 20:19:57
In the night sky, stars appear surrounded by empty
peah-webrtc
2015/08/12 20:25:53
Done.
peah-webrtc
2015/08/12 20:25:53
Wonderful comment! :-) (and of course you are righ
| |
| 37 const int16_t instanceCtr); | |
|
kwiberg-webrtc
2015/08/10 20:19:57
Why not int? (That's what you always should pick u
hlundin-webrtc
2015/08/12 11:48:18
Acknowledged.
peah-webrtc
2015/08/12 20:25:53
Done.
| |
| 38 | |
| 39 #endif // WEBRTC_AEC_DEBUG_DUMP | |
| 40 | |
| 41 | |
|
Andrew MacDonald
2015/08/10 15:25:55
Remove blank line.
peah-webrtc
2015/08/12 20:25:53
Done.
| |
| 42 #ifdef __cplusplus | |
| 43 } | |
| 44 #endif | |
| 45 | |
| 46 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_LOGGING_FILE_HANDLING_ | |
| OLD | NEW |