phoglund | 37ebcf0 | 2016-01-08 05:04:57 -0800 | [diff] [blame] | 1 | /* |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 2 | * Copyright 2017 The WebRTC project authors. All Rights Reserved. |
phoglund | 37ebcf0 | 2016-01-08 05:04:57 -0800 | [diff] [blame] | 3 | * |
kjellander | b24317b | 2016-02-10 07:54:43 -0800 | [diff] [blame] | 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 |
| 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. |
phoglund | 37ebcf0 | 2016-01-08 05:04:57 -0800 | [diff] [blame] | 9 | */ |
| 10 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 11 | #include "api/mediastreaminterface.h" |
phoglund | 37ebcf0 | 2016-01-08 05:04:57 -0800 | [diff] [blame] | 12 | |
| 13 | namespace webrtc { |
| 14 | |
ossu | 7bb87ee | 2017-01-23 04:56:25 -0800 | [diff] [blame] | 15 | const char MediaStreamTrackInterface::kVideoKind[] = "video"; |
| 16 | const char MediaStreamTrackInterface::kAudioKind[] = "audio"; |
phoglund | 37ebcf0 | 2016-01-08 05:04:57 -0800 | [diff] [blame] | 17 | |
Ivo Creusen | ae02609 | 2017-11-20 13:07:16 +0100 | [diff] [blame] | 18 | // TODO(ivoc): Remove this when the function becomes pure virtual. |
| 19 | AudioProcessorInterface::AudioProcessorStatistics |
| 20 | AudioProcessorInterface::GetStats(bool /*has_remote_tracks*/) { |
| 21 | AudioProcessorStats stats; |
| 22 | GetStats(&stats); |
| 23 | AudioProcessorStatistics new_stats; |
Ivo Creusen | 56d4609 | 2017-11-24 17:29:59 +0100 | [diff] [blame] | 24 | new_stats.apm_statistics.divergent_filter_fraction = |
| 25 | stats.aec_divergent_filter_fraction; |
| 26 | new_stats.apm_statistics.delay_median_ms = stats.echo_delay_median_ms; |
| 27 | new_stats.apm_statistics.delay_standard_deviation_ms = |
| 28 | stats.echo_delay_std_ms; |
| 29 | new_stats.apm_statistics.echo_return_loss = stats.echo_return_loss; |
| 30 | new_stats.apm_statistics.echo_return_loss_enhancement = |
| 31 | stats.echo_return_loss_enhancement; |
| 32 | new_stats.apm_statistics.residual_echo_likelihood = |
| 33 | stats.residual_echo_likelihood; |
| 34 | new_stats.apm_statistics.residual_echo_likelihood_recent_max = |
| 35 | stats.residual_echo_likelihood_recent_max; |
Ivo Creusen | ae02609 | 2017-11-20 13:07:16 +0100 | [diff] [blame] | 36 | return new_stats; |
| 37 | } |
| 38 | |
phoglund | 37ebcf0 | 2016-01-08 05:04:57 -0800 | [diff] [blame] | 39 | } // namespace webrtc |