#include "services/audio/audio_processor_handler.h"
#include <algorithm>
#include "base/trace_event/trace_event.h"
#include "media/base/audio_bus.h"
#include "media/base/audio_parameters.h"
namespace audio {
AudioProcessorHandler::AudioProcessorHandler(
const media::AudioProcessingSettings& settings,
const media::AudioParameters& input_format,
const media::AudioParameters& output_format,
LogCallback log_callback,
DeliverProcessedAudioCallback deliver_processed_audio_callback,
mojo::PendingReceiver<media::mojom::AudioProcessorControls>
controls_receiver,
media::AecdumpRecordingManager* aecdump_recording_manager)
: … { … }
AudioProcessorHandler::~AudioProcessorHandler() { … }
void AudioProcessorHandler::ProcessCapturedAudio(
const media::AudioBus& audio_source,
base::TimeTicks audio_capture_time,
double volume,
bool key_pressed,
const media::AudioGlitchInfo& audio_glitch_info) { … }
void AudioProcessorHandler::OnPlayoutData(const media::AudioBus& audio_bus,
int sample_rate,
base::TimeDelta delay) { … }
void AudioProcessorHandler::GetStats(GetStatsCallback callback) { … }
void AudioProcessorHandler::SetPreferredNumCaptureChannels(
int32_t num_preferred_channels) { … }
void AudioProcessorHandler::StartAecdump(base::File aecdump_file) { … }
void AudioProcessorHandler::StopAecdump() { … }
void AudioProcessorHandler::DeliverProcessedAudio(
const media::AudioBus& audio_bus,
base::TimeTicks audio_capture_time,
std::optional<double> new_volume) { … }
}