OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 // TODO(tommi): Make pure virtual. | 196 // TODO(tommi): Make pure virtual. |
197 virtual void AddSink(AudioTrackSinkInterface* sink) {} | 197 virtual void AddSink(AudioTrackSinkInterface* sink) {} |
198 virtual void RemoveSink(AudioTrackSinkInterface* sink) {} | 198 virtual void RemoveSink(AudioTrackSinkInterface* sink) {} |
199 }; | 199 }; |
200 | 200 |
201 // Interface of the audio processor used by the audio track to collect | 201 // Interface of the audio processor used by the audio track to collect |
202 // statistics. | 202 // statistics. |
203 class AudioProcessorInterface : public rtc::RefCountInterface { | 203 class AudioProcessorInterface : public rtc::RefCountInterface { |
204 public: | 204 public: |
205 struct AudioProcessorStats { | 205 struct AudioProcessorStats { |
206 AudioProcessorStats() : typing_noise_detected(false), | 206 AudioProcessorStats() |
207 echo_return_loss(0), | 207 : typing_noise_detected(false), |
208 echo_return_loss_enhancement(0), | 208 echo_return_loss(0), |
209 echo_delay_median_ms(0), | 209 echo_return_loss_enhancement(0), |
210 echo_delay_std_ms(0), | 210 echo_delay_median_ms(0), |
211 aec_quality_min(0.0), | 211 echo_delay_std_ms(0), |
212 residual_echo_likelihood(0.0f), | 212 aec_quality_min(0.0), |
213 aec_divergent_filter_fraction(0.0) {} | 213 residual_echo_likelihood(0.0f), |
| 214 residual_echo_likelihood_recent_max(0.0f), |
| 215 aec_divergent_filter_fraction(0.0) {} |
214 ~AudioProcessorStats() {} | 216 ~AudioProcessorStats() {} |
215 | 217 |
216 bool typing_noise_detected; | 218 bool typing_noise_detected; |
217 int echo_return_loss; | 219 int echo_return_loss; |
218 int echo_return_loss_enhancement; | 220 int echo_return_loss_enhancement; |
219 int echo_delay_median_ms; | 221 int echo_delay_median_ms; |
220 int echo_delay_std_ms; | 222 int echo_delay_std_ms; |
221 float aec_quality_min; | 223 float aec_quality_min; |
222 float residual_echo_likelihood; | 224 float residual_echo_likelihood; |
| 225 float residual_echo_likelihood_recent_max; |
223 float aec_divergent_filter_fraction; | 226 float aec_divergent_filter_fraction; |
224 }; | 227 }; |
225 | 228 |
226 // Get audio processor statistics. | 229 // Get audio processor statistics. |
227 virtual void GetStats(AudioProcessorStats* stats) = 0; | 230 virtual void GetStats(AudioProcessorStats* stats) = 0; |
228 | 231 |
229 protected: | 232 protected: |
230 virtual ~AudioProcessorInterface() {} | 233 virtual ~AudioProcessorInterface() {} |
231 }; | 234 }; |
232 | 235 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; | 280 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; |
278 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; | 281 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; |
279 | 282 |
280 protected: | 283 protected: |
281 virtual ~MediaStreamInterface() {} | 284 virtual ~MediaStreamInterface() {} |
282 }; | 285 }; |
283 | 286 |
284 } // namespace webrtc | 287 } // namespace webrtc |
285 | 288 |
286 #endif // WEBRTC_API_MEDIASTREAMINTERFACE_H_ | 289 #endif // WEBRTC_API_MEDIASTREAMINTERFACE_H_ |
OLD | NEW |