#include "third_party/blink/renderer/modules/mediastream/webaudio_media_stream_audio_sink.h"
#include <memory>
#include <string>
#include "base/logging.h"
#include "base/trace_event/trace_event.h"
#include "media/base/audio_fifo.h"
#include "media/base/audio_parameters.h"
#include "media/base/audio_timestamp_helper.h"
#include "third_party/blink/public/web/web_local_frame.h"
#include "third_party/blink/renderer/platform/media/web_audio_source_provider_client.h"
namespace blink {
const int WebAudioMediaStreamAudioSink::kWebAudioRenderBufferSize = …;
WebAudioMediaStreamAudioSink::WebAudioMediaStreamAudioSink(
MediaStreamComponent* component,
int context_sample_rate,
base::TimeDelta platform_buffer_duration)
: … { … }
WebAudioMediaStreamAudioSink::~WebAudioMediaStreamAudioSink() { … }
void WebAudioMediaStreamAudioSink::OnSetFormat(
const media::AudioParameters& params) { … }
void WebAudioMediaStreamAudioSink::OnReadyStateChanged(
WebMediaStreamSource::ReadyState state) { … }
void WebAudioMediaStreamAudioSink::OnData(
const media::AudioBus& audio_bus,
base::TimeTicks estimated_capture_time) { … }
void WebAudioMediaStreamAudioSink::SetClient(
WebAudioSourceProviderClient* client) { … }
void WebAudioMediaStreamAudioSink::ProvideInput(
const WebVector<float*>& audio_data,
int number_of_frames) { … }
void WebAudioMediaStreamAudioSink::ResetFifoStatsForTesting() { … }
const WebAudioMediaStreamAudioSink::FifoStats&
WebAudioMediaStreamAudioSink::GetFifoStatsForTesting() { … }
double WebAudioMediaStreamAudioSink::ProvideInput(
media::AudioBus* audio_bus,
uint32_t frames_delayed,
const media::AudioGlitchInfo& glitch_info) NO_THREAD_SAFETY_ANALYSIS { … }
}