OLD | NEW |
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 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 } | 920 } |
921 | 921 |
922 int VoEAudioProcessingImpl::StartDebugRecording(const char* fileNameUTF8) { | 922 int VoEAudioProcessingImpl::StartDebugRecording(const char* fileNameUTF8) { |
923 WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1), | 923 WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1), |
924 "StartDebugRecording()"); | 924 "StartDebugRecording()"); |
925 if (!_shared->statistics().Initialized()) { | 925 if (!_shared->statistics().Initialized()) { |
926 _shared->SetLastError(VE_NOT_INITED, kTraceError); | 926 _shared->SetLastError(VE_NOT_INITED, kTraceError); |
927 return -1; | 927 return -1; |
928 } | 928 } |
929 | 929 |
930 return _shared->audio_processing()->StartDebugRecording(fileNameUTF8); | 930 return _shared->audio_processing()->StartDebugRecording(fileNameUTF8, -1); |
931 } | 931 } |
932 | 932 |
933 int VoEAudioProcessingImpl::StartDebugRecording(FILE* file_handle) { | 933 int VoEAudioProcessingImpl::StartDebugRecording(FILE* file_handle) { |
934 WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1), | 934 WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1), |
935 "StartDebugRecording()"); | 935 "StartDebugRecording()"); |
936 if (!_shared->statistics().Initialized()) { | 936 if (!_shared->statistics().Initialized()) { |
937 _shared->SetLastError(VE_NOT_INITED, kTraceError); | 937 _shared->SetLastError(VE_NOT_INITED, kTraceError); |
938 return -1; | 938 return -1; |
939 } | 939 } |
940 | 940 |
941 return _shared->audio_processing()->StartDebugRecording(file_handle); | 941 return _shared->audio_processing()->StartDebugRecording(file_handle, -1); |
942 } | 942 } |
943 | 943 |
944 int VoEAudioProcessingImpl::StopDebugRecording() { | 944 int VoEAudioProcessingImpl::StopDebugRecording() { |
945 WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1), | 945 WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1), |
946 "StopDebugRecording()"); | 946 "StopDebugRecording()"); |
947 if (!_shared->statistics().Initialized()) { | 947 if (!_shared->statistics().Initialized()) { |
948 _shared->SetLastError(VE_NOT_INITED, kTraceError); | 948 _shared->SetLastError(VE_NOT_INITED, kTraceError); |
949 return -1; | 949 return -1; |
950 } | 950 } |
951 | 951 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1043 } | 1043 } |
1044 | 1044 |
1045 bool VoEAudioProcessingImpl::IsStereoChannelSwappingEnabled() { | 1045 bool VoEAudioProcessingImpl::IsStereoChannelSwappingEnabled() { |
1046 LOG_API0(); | 1046 LOG_API0(); |
1047 return _shared->transmit_mixer()->IsStereoChannelSwappingEnabled(); | 1047 return _shared->transmit_mixer()->IsStereoChannelSwappingEnabled(); |
1048 } | 1048 } |
1049 | 1049 |
1050 #endif // #ifdef WEBRTC_VOICE_ENGINE_AUDIO_PROCESSING_API | 1050 #endif // #ifdef WEBRTC_VOICE_ENGINE_AUDIO_PROCESSING_API |
1051 | 1051 |
1052 } // namespace webrtc | 1052 } // namespace webrtc |
OLD | NEW |