| 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 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, -1); | 927 return _shared->audio_processing()->StartDebugRecording(fileNameUTF8); |
| 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, -1); | 938 return _shared->audio_processing()->StartDebugRecording(file_handle); |
| 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 Loading... |
| 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 |
| OLD | NEW |