| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 // Interface of the audio processor used by the audio track to collect | 208 // Interface of the audio processor used by the audio track to collect |
| 209 // statistics. | 209 // statistics. |
| 210 class AudioProcessorInterface : public rtc::RefCountInterface { | 210 class AudioProcessorInterface : public rtc::RefCountInterface { |
| 211 public: | 211 public: |
| 212 struct AudioProcessorStats { | 212 struct AudioProcessorStats { |
| 213 AudioProcessorStats() : typing_noise_detected(false), | 213 AudioProcessorStats() : typing_noise_detected(false), |
| 214 echo_return_loss(0), | 214 echo_return_loss(0), |
| 215 echo_return_loss_enhancement(0), | 215 echo_return_loss_enhancement(0), |
| 216 echo_delay_median_ms(0), | 216 echo_delay_median_ms(0), |
| 217 aec_quality_min(0.0), | 217 aec_quality_min(0.0), |
| 218 echo_delay_std_ms(0) {} | 218 echo_delay_std_ms(0), |
| 219 aec_divergent_filter_fraction(0.0) {} |
| 219 ~AudioProcessorStats() {} | 220 ~AudioProcessorStats() {} |
| 220 | 221 |
| 221 bool typing_noise_detected; | 222 bool typing_noise_detected; |
| 222 int echo_return_loss; | 223 int echo_return_loss; |
| 223 int echo_return_loss_enhancement; | 224 int echo_return_loss_enhancement; |
| 224 int echo_delay_median_ms; | 225 int echo_delay_median_ms; |
| 225 float aec_quality_min; | 226 float aec_quality_min; |
| 226 int echo_delay_std_ms; | 227 int echo_delay_std_ms; |
| 228 float aec_divergent_filter_fraction; |
| 227 }; | 229 }; |
| 228 | 230 |
| 229 // Get audio processor statistics. | 231 // Get audio processor statistics. |
| 230 virtual void GetStats(AudioProcessorStats* stats) = 0; | 232 virtual void GetStats(AudioProcessorStats* stats) = 0; |
| 231 | 233 |
| 232 protected: | 234 protected: |
| 233 virtual ~AudioProcessorInterface() {} | 235 virtual ~AudioProcessorInterface() {} |
| 234 }; | 236 }; |
| 235 | 237 |
| 236 class AudioTrackInterface : public MediaStreamTrackInterface { | 238 class AudioTrackInterface : public MediaStreamTrackInterface { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; | 282 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; |
| 281 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; | 283 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; |
| 282 | 284 |
| 283 protected: | 285 protected: |
| 284 virtual ~MediaStreamInterface() {} | 286 virtual ~MediaStreamInterface() {} |
| 285 }; | 287 }; |
| 286 | 288 |
| 287 } // namespace webrtc | 289 } // namespace webrtc |
| 288 | 290 |
| 289 #endif // WEBRTC_API_MEDIASTREAMINTERFACE_H_ | 291 #endif // WEBRTC_API_MEDIASTREAMINTERFACE_H_ |
| OLD | NEW |