| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 public: | 94 public: |
| 95 EchoInformation(); | 95 EchoInformation(); |
| 96 virtual ~EchoInformation(); | 96 virtual ~EchoInformation(); |
| 97 | 97 |
| 98 void UpdateAecDelayStats(webrtc::EchoCancellation* echo_cancellation); | 98 void UpdateAecDelayStats(webrtc::EchoCancellation* echo_cancellation); |
| 99 | 99 |
| 100 private: | 100 private: |
| 101 // Counter to track 5 seconds of processed 10 ms chunks in order to query a | 101 // Counter to track 5 seconds of processed 10 ms chunks in order to query a |
| 102 // new metric from webrtc::EchoCancellation::GetEchoDelayMetrics(). | 102 // new metric from webrtc::EchoCancellation::GetEchoDelayMetrics(). |
| 103 int num_chunks_; | 103 int num_chunks_; |
| 104 bool echo_frames_received_; |
| 104 | 105 |
| 105 DISALLOW_COPY_AND_ASSIGN(EchoInformation); | 106 DISALLOW_COPY_AND_ASSIGN(EchoInformation); |
| 106 }; | 107 }; |
| 107 | 108 |
| 108 // Enables the echo cancellation in |audio_processing|. | 109 // Enables the echo cancellation in |audio_processing|. |
| 109 void EnableEchoCancellation(AudioProcessing* audio_processing); | 110 void EnableEchoCancellation(AudioProcessing* audio_processing); |
| 110 | 111 |
| 111 // Enables the noise suppression in |audio_processing|. | 112 // Enables the noise suppression in |audio_processing|. |
| 112 void EnableNoiseSuppression(AudioProcessing* audio_processing); | 113 void EnableNoiseSuppression(AudioProcessing* audio_processing); |
| 113 | 114 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 128 void StopEchoCancellationDump(AudioProcessing* audio_processing); | 129 void StopEchoCancellationDump(AudioProcessing* audio_processing); |
| 129 | 130 |
| 130 void EnableAutomaticGainControl(AudioProcessing* audio_processing); | 131 void EnableAutomaticGainControl(AudioProcessing* audio_processing); |
| 131 | 132 |
| 132 void GetAecStats(webrtc::EchoCancellation* echo_cancellation, | 133 void GetAecStats(webrtc::EchoCancellation* echo_cancellation, |
| 133 webrtc::AudioProcessorInterface::AudioProcessorStats* stats); | 134 webrtc::AudioProcessorInterface::AudioProcessorStats* stats); |
| 134 | 135 |
| 135 } // namespace content | 136 } // namespace content |
| 136 | 137 |
| 137 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ | 138 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ |
| OLD | NEW |