| 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 // of |handle| and closes it at StopDebugRecording(). | 371 // of |handle| and closes it at StopDebugRecording(). |
| 372 // TODO(xians): Make this interface pure virtual. | 372 // TODO(xians): Make this interface pure virtual. |
| 373 virtual int StartDebugRecordingForPlatformFile(rtc::PlatformFile handle) { | 373 virtual int StartDebugRecordingForPlatformFile(rtc::PlatformFile handle) { |
| 374 return -1; | 374 return -1; |
| 375 } | 375 } |
| 376 | 376 |
| 377 // Stops recording debugging information, and closes the file. Recording | 377 // Stops recording debugging information, and closes the file. Recording |
| 378 // cannot be resumed in the same file (without overwriting it). | 378 // cannot be resumed in the same file (without overwriting it). |
| 379 virtual int StopDebugRecording() = 0; | 379 virtual int StopDebugRecording() = 0; |
| 380 | 380 |
| 381 // Use to send UMA histograms at end of a call. Note that all histogram |
| 382 // specific member variables are reset. |
| 383 virtual void UpdateHistogramsOnCallEnd() = 0; |
| 384 |
| 381 // These provide access to the component interfaces and should never return | 385 // These provide access to the component interfaces and should never return |
| 382 // NULL. The pointers will be valid for the lifetime of the APM instance. | 386 // NULL. The pointers will be valid for the lifetime of the APM instance. |
| 383 // The memory for these objects is entirely managed internally. | 387 // The memory for these objects is entirely managed internally. |
| 384 virtual EchoCancellation* echo_cancellation() const = 0; | 388 virtual EchoCancellation* echo_cancellation() const = 0; |
| 385 virtual EchoControlMobile* echo_control_mobile() const = 0; | 389 virtual EchoControlMobile* echo_control_mobile() const = 0; |
| 386 virtual GainControl* gain_control() const = 0; | 390 virtual GainControl* gain_control() const = 0; |
| 387 virtual HighPassFilter* high_pass_filter() const = 0; | 391 virtual HighPassFilter* high_pass_filter() const = 0; |
| 388 virtual LevelEstimator* level_estimator() const = 0; | 392 virtual LevelEstimator* level_estimator() const = 0; |
| 389 virtual NoiseSuppression* noise_suppression() const = 0; | 393 virtual NoiseSuppression* noise_suppression() const = 0; |
| 390 virtual VoiceDetection* voice_detection() const = 0; | 394 virtual VoiceDetection* voice_detection() const = 0; |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 // This does not impact the size of frames passed to |ProcessStream()|. | 787 // This does not impact the size of frames passed to |ProcessStream()|. |
| 784 virtual int set_frame_size_ms(int size) = 0; | 788 virtual int set_frame_size_ms(int size) = 0; |
| 785 virtual int frame_size_ms() const = 0; | 789 virtual int frame_size_ms() const = 0; |
| 786 | 790 |
| 787 protected: | 791 protected: |
| 788 virtual ~VoiceDetection() {} | 792 virtual ~VoiceDetection() {} |
| 789 }; | 793 }; |
| 790 } // namespace webrtc | 794 } // namespace webrtc |
| 791 | 795 |
| 792 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 796 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
| OLD | NEW |