#include "third_party/blink/renderer/platform/mediastream/webaudio_media_stream_source.h"
#include <utility>
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/task/single_thread_task_runner.h"
#include "media/base/audio_glitch_info.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
namespace blink {
WebAudioMediaStreamSource::WebAudioMediaStreamSource(
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
: … { … }
WebAudioMediaStreamSource::~WebAudioMediaStreamSource() { … }
void WebAudioMediaStreamSource::SetFormat(int number_of_channels,
float sample_rate) { … }
bool WebAudioMediaStreamSource::EnsureSourceIsStarted() { … }
void WebAudioMediaStreamSource::EnsureSourceIsStopped() { … }
void WebAudioMediaStreamSource::ConsumeAudio(
const Vector<const float*>& audio_data,
int number_of_frames) { … }
void WebAudioMediaStreamSource::DeliverRebufferedAudio(
const media::AudioBus& audio_bus,
int frame_delay) { … }
}