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

Side by Side Diff: webrtc/voice_engine/voe_audio_processing_impl.cc

Issue 1413483003: Added option to specify a maximum file size when recording an AEC dump. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added function to avoid breaking Chromium. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/audio_processing/test/process_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 } 917 }
918 918
919 int VoEAudioProcessingImpl::StartDebugRecording(const char* fileNameUTF8) { 919 int VoEAudioProcessingImpl::StartDebugRecording(const char* fileNameUTF8) {
920 WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1), 920 WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
921 "StartDebugRecording()"); 921 "StartDebugRecording()");
922 if (!_shared->statistics().Initialized()) { 922 if (!_shared->statistics().Initialized()) {
923 _shared->SetLastError(VE_NOT_INITED, kTraceError); 923 _shared->SetLastError(VE_NOT_INITED, kTraceError);
924 return -1; 924 return -1;
925 } 925 }
926 926
927 return _shared->audio_processing()->StartDebugRecording(fileNameUTF8); 927 return _shared->audio_processing()->StartDebugRecording(fileNameUTF8, -1);
928 } 928 }
929 929
930 int VoEAudioProcessingImpl::StartDebugRecording(FILE* file_handle) { 930 int VoEAudioProcessingImpl::StartDebugRecording(FILE* file_handle) {
931 WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1), 931 WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
932 "StartDebugRecording()"); 932 "StartDebugRecording()");
933 if (!_shared->statistics().Initialized()) { 933 if (!_shared->statistics().Initialized()) {
934 _shared->SetLastError(VE_NOT_INITED, kTraceError); 934 _shared->SetLastError(VE_NOT_INITED, kTraceError);
935 return -1; 935 return -1;
936 } 936 }
937 937
938 return _shared->audio_processing()->StartDebugRecording(file_handle); 938 return _shared->audio_processing()->StartDebugRecording(file_handle, -1);
939 } 939 }
940 940
941 int VoEAudioProcessingImpl::StopDebugRecording() { 941 int VoEAudioProcessingImpl::StopDebugRecording() {
942 WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1), 942 WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1),
943 "StopDebugRecording()"); 943 "StopDebugRecording()");
944 if (!_shared->statistics().Initialized()) { 944 if (!_shared->statistics().Initialized()) {
945 _shared->SetLastError(VE_NOT_INITED, kTraceError); 945 _shared->SetLastError(VE_NOT_INITED, kTraceError);
946 return -1; 946 return -1;
947 } 947 }
948 948
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 _shared->transmit_mixer()->EnableStereoChannelSwapping(enable); 1038 _shared->transmit_mixer()->EnableStereoChannelSwapping(enable);
1039 } 1039 }
1040 1040
1041 bool VoEAudioProcessingImpl::IsStereoChannelSwappingEnabled() { 1041 bool VoEAudioProcessingImpl::IsStereoChannelSwappingEnabled() {
1042 return _shared->transmit_mixer()->IsStereoChannelSwappingEnabled(); 1042 return _shared->transmit_mixer()->IsStereoChannelSwappingEnabled();
1043 } 1043 }
1044 1044
1045 #endif // #ifdef WEBRTC_VOICE_ENGINE_AUDIO_PROCESSING_API 1045 #endif // #ifdef WEBRTC_VOICE_ENGINE_AUDIO_PROCESSING_API
1046 1046
1047 } // namespace webrtc 1047 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/test/process_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698