2016-01-08 05:04:57 -08:00
|
|
|
/*
|
2017-01-23 04:56:25 -08:00
|
|
|
* Copyright 2017 The WebRTC project authors. All Rights Reserved.
|
2016-01-08 05:04:57 -08:00
|
|
|
*
|
2016-02-10 07:54:43 -08:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2016-01-08 05:04:57 -08:00
|
|
|
*/
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "api/mediastreaminterface.h"
|
2016-01-08 05:04:57 -08:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2017-01-23 04:56:25 -08:00
|
|
|
const char MediaStreamTrackInterface::kVideoKind[] = "video";
|
|
|
|
|
const char MediaStreamTrackInterface::kAudioKind[] = "audio";
|
2016-01-08 05:04:57 -08:00
|
|
|
|
2017-11-20 13:07:16 +01:00
|
|
|
// TODO(ivoc): Remove this when the function becomes pure virtual.
|
|
|
|
|
AudioProcessorInterface::AudioProcessorStatistics
|
|
|
|
|
AudioProcessorInterface::GetStats(bool /*has_remote_tracks*/) {
|
|
|
|
|
AudioProcessorStats stats;
|
|
|
|
|
GetStats(&stats);
|
|
|
|
|
AudioProcessorStatistics new_stats;
|
2017-11-24 17:29:59 +01:00
|
|
|
new_stats.apm_statistics.divergent_filter_fraction =
|
|
|
|
|
stats.aec_divergent_filter_fraction;
|
|
|
|
|
new_stats.apm_statistics.delay_median_ms = stats.echo_delay_median_ms;
|
|
|
|
|
new_stats.apm_statistics.delay_standard_deviation_ms =
|
|
|
|
|
stats.echo_delay_std_ms;
|
|
|
|
|
new_stats.apm_statistics.echo_return_loss = stats.echo_return_loss;
|
|
|
|
|
new_stats.apm_statistics.echo_return_loss_enhancement =
|
|
|
|
|
stats.echo_return_loss_enhancement;
|
|
|
|
|
new_stats.apm_statistics.residual_echo_likelihood =
|
|
|
|
|
stats.residual_echo_likelihood;
|
|
|
|
|
new_stats.apm_statistics.residual_echo_likelihood_recent_max =
|
|
|
|
|
stats.residual_echo_likelihood_recent_max;
|
2017-11-20 13:07:16 +01:00
|
|
|
return new_stats;
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-08 05:04:57 -08:00
|
|
|
} // namespace webrtc
|