#include "audio/audio_state.h"
#include <algorithm>
#include <memory>
#include <utility>
#include <vector>
#include "api/audio/audio_device.h"
#include "api/sequence_checker.h"
#include "api/task_queue/task_queue_base.h"
#include "api/units/time_delta.h"
#include "audio/audio_receive_stream.h"
#include "audio/audio_send_stream.h"
#include "rtc_base/checks.h"
#include "rtc_base/logging.h"
namespace webrtc {
namespace internal {
AudioState::AudioState(const AudioState::Config& config)
: … { … }
AudioState::~AudioState() { … }
AudioProcessing* AudioState::audio_processing() { … }
AudioTransport* AudioState::audio_transport() { … }
void AudioState::AddReceivingStream(
webrtc::AudioReceiveStreamInterface* stream) { … }
void AudioState::RemoveReceivingStream(
webrtc::AudioReceiveStreamInterface* stream) { … }
void AudioState::AddSendingStream(webrtc::AudioSendStream* stream,
int sample_rate_hz,
size_t num_channels) { … }
void AudioState::RemoveSendingStream(webrtc::AudioSendStream* stream) { … }
void AudioState::SetPlayout(bool enabled) { … }
void AudioState::SetRecording(bool enabled) { … }
void AudioState::SetStereoChannelSwapping(bool enable) { … }
void AudioState::UpdateAudioTransportWithSendingStreams() { … }
void AudioState::UpdateNullAudioPollerState() { … }
}
rtc::scoped_refptr<AudioState> AudioState::Create(
const AudioState::Config& config) { … }
}