blob: 92bca162afed1c1019d11e0795ddd06036d1de61 [file] [log] [blame]
phoglund37ebcf02016-01-08 05:04:57 -08001/*
ossu7bb87ee2017-01-23 04:56:25 -08002 * Copyright 2017 The WebRTC project authors. All Rights Reserved.
phoglund37ebcf02016-01-08 05:04:57 -08003 *
kjellanderb24317b2016-02-10 07:54:43 -08004 * 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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
phoglund37ebcf02016-01-08 05:04:57 -08009 */
10
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#include "api/mediastreaminterface.h"
phoglund37ebcf02016-01-08 05:04:57 -080012
13namespace webrtc {
14
ossu7bb87ee2017-01-23 04:56:25 -080015const char MediaStreamTrackInterface::kVideoKind[] = "video";
16const char MediaStreamTrackInterface::kAudioKind[] = "audio";
phoglund37ebcf02016-01-08 05:04:57 -080017
Ivo Creusenae026092017-11-20 13:07:16 +010018// TODO(ivoc): Remove this when the function becomes pure virtual.
19AudioProcessorInterface::AudioProcessorStatistics
20AudioProcessorInterface::GetStats(bool /*has_remote_tracks*/) {
21 AudioProcessorStats stats;
22 GetStats(&stats);
23 AudioProcessorStatistics new_stats;
24 new_stats.aec_divergent_filter_fraction =
25 rtc::Optional<double>(stats.aec_divergent_filter_fraction);
26 new_stats.aec_quality_min = rtc::Optional<double>(stats.aec_quality_min);
27 new_stats.echo_delay_median_ms =
28 rtc::Optional<int32_t>(stats.echo_delay_median_ms);
29 new_stats.echo_delay_std_ms = rtc::Optional<int32_t>(stats.echo_delay_std_ms);
30 new_stats.echo_return_loss = rtc::Optional<double>(stats.echo_return_loss);
31 new_stats.echo_return_loss_enhancement =
32 rtc::Optional<double>(stats.echo_return_loss_enhancement);
33 new_stats.residual_echo_likelihood =
34 rtc::Optional<double>(stats.residual_echo_likelihood);
35 new_stats.residual_echo_likelihood_recent_max =
36 rtc::Optional<double>(stats.residual_echo_likelihood_recent_max);
37 return new_stats;
38}
39
phoglund37ebcf02016-01-08 05:04:57 -080040} // namespace webrtc