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 #include <stdio.h>
15 
16 #include "webrtc/common_audio/wav_file.h"
17 #include "webrtc/typedefs.h"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #ifdef WEBRTC_AEC_DEBUG_DUMP
24 // Opens a new Wav file for writing. If it was already open with a different
25 // sample frequency, it closes it first.
26 void WebRtcAec_ReopenWav(const char* name,
27                          int instance_index,
28                          int process_rate,
29                          int sample_rate,
30                          rtc_WavWriter** wav_file);
31 
32 // Opens dumpfile with instance-specific filename.
33 void WebRtcAec_RawFileOpen(const char* name, int instance_index, FILE** file);
34 
35 #endif  // WEBRTC_AEC_DEBUG_DUMP
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif  // WEBRTC_MODULES_AUDIO_PROCESSING_AEC_AEC_LOGGING_FILE_HANDLING_
42