| 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 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1244 } | 1244 } |
| 1245 | 1245 |
| 1246 RETURN_ON_ERR(WriteConfigMessage(true)); | 1246 RETURN_ON_ERR(WriteConfigMessage(true)); |
| 1247 RETURN_ON_ERR(WriteInitMessage()); | 1247 RETURN_ON_ERR(WriteInitMessage()); |
| 1248 return kNoError; | 1248 return kNoError; |
| 1249 #else | 1249 #else |
| 1250 return kUnsupportedFunctionError; | 1250 return kUnsupportedFunctionError; |
| 1251 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP | 1251 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP |
| 1252 } | 1252 } |
| 1253 | 1253 |
| 1254 int AudioProcessingImpl::StartDebugRecording(FILE* handle) { |
| 1255 return StartDebugRecording(handle, -1); |
| 1256 } |
| 1257 |
| 1254 int AudioProcessingImpl::StartDebugRecordingForPlatformFile( | 1258 int AudioProcessingImpl::StartDebugRecordingForPlatformFile( |
| 1255 rtc::PlatformFile handle) { | 1259 rtc::PlatformFile handle) { |
| 1256 // Run in a single-threaded manner. | 1260 // Run in a single-threaded manner. |
| 1257 rtc::CritScope cs_render(&crit_render_); | 1261 rtc::CritScope cs_render(&crit_render_); |
| 1258 rtc::CritScope cs_capture(&crit_capture_); | 1262 rtc::CritScope cs_capture(&crit_capture_); |
| 1259 FILE* stream = rtc::FdopenPlatformFileForWriting(handle); | 1263 FILE* stream = rtc::FdopenPlatformFileForWriting(handle); |
| 1260 return StartDebugRecording(stream, -1); | 1264 return StartDebugRecording(stream, -1); |
| 1261 } | 1265 } |
| 1262 | 1266 |
| 1263 int AudioProcessingImpl::StopDebugRecording() { | 1267 int AudioProcessingImpl::StopDebugRecording() { |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1590 capture_processing_format(kSampleRate16kHz), | 1594 capture_processing_format(kSampleRate16kHz), |
| 1591 split_rate(kSampleRate16kHz) {} | 1595 split_rate(kSampleRate16kHz) {} |
| 1592 | 1596 |
| 1593 AudioProcessingImpl::ApmCaptureState::~ApmCaptureState() = default; | 1597 AudioProcessingImpl::ApmCaptureState::~ApmCaptureState() = default; |
| 1594 | 1598 |
| 1595 AudioProcessingImpl::ApmRenderState::ApmRenderState() = default; | 1599 AudioProcessingImpl::ApmRenderState::ApmRenderState() = default; |
| 1596 | 1600 |
| 1597 AudioProcessingImpl::ApmRenderState::~ApmRenderState() = default; | 1601 AudioProcessingImpl::ApmRenderState::~ApmRenderState() = default; |
| 1598 | 1602 |
| 1599 } // namespace webrtc | 1603 } // namespace webrtc |
| OLD | NEW |