#include "modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.h"
#include <stdint.h>
#include <utility>
#include <vector>
#include "modules/audio_coding/audio_network_adaptor/controller_manager.h"
#include "modules/audio_coding/audio_network_adaptor/debug_dump_writer.h"
#include "modules/audio_coding/audio_network_adaptor/event_log_writer.h"
#include "rtc_base/checks.h"
#include "rtc_base/time_utils.h"
#include "system_wrappers/include/field_trial.h"
namespace webrtc {
namespace {
constexpr int kEventLogMinBitrateChangeBps = …;
constexpr float kEventLogMinBitrateChangeFraction = …;
constexpr float kEventLogMinPacketLossChangeFraction = …;
}
AudioNetworkAdaptorImpl::Config::Config() : … { … }
AudioNetworkAdaptorImpl::Config::~Config() = default;
AudioNetworkAdaptorImpl::AudioNetworkAdaptorImpl(
const Config& config,
std::unique_ptr<ControllerManager> controller_manager,
std::unique_ptr<DebugDumpWriter> debug_dump_writer)
: … { … }
AudioNetworkAdaptorImpl::~AudioNetworkAdaptorImpl() = default;
void AudioNetworkAdaptorImpl::SetUplinkBandwidth(int uplink_bandwidth_bps) { … }
void AudioNetworkAdaptorImpl::SetUplinkPacketLossFraction(
float uplink_packet_loss_fraction) { … }
void AudioNetworkAdaptorImpl::SetRtt(int rtt_ms) { … }
void AudioNetworkAdaptorImpl::SetTargetAudioBitrate(
int target_audio_bitrate_bps) { … }
void AudioNetworkAdaptorImpl::SetOverhead(size_t overhead_bytes_per_packet) { … }
AudioEncoderRuntimeConfig AudioNetworkAdaptorImpl::GetEncoderRuntimeConfig() { … }
void AudioNetworkAdaptorImpl::StartDebugDump(FILE* file_handle) { … }
void AudioNetworkAdaptorImpl::StopDebugDump() { … }
ANAStats AudioNetworkAdaptorImpl::GetStats() const { … }
void AudioNetworkAdaptorImpl::DumpNetworkMetrics() { … }
void AudioNetworkAdaptorImpl::UpdateNetworkMetrics(
const Controller::NetworkMetrics& network_metrics) { … }
}