#include "remoting/protocol/webrtc_audio_sink_adapter.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/task/single_thread_task_runner.h"
#include "remoting/proto/audio.pb.h"
#include "remoting/protocol/audio_stub.h"
namespace remoting::protocol {
WebrtcAudioSinkAdapter::WebrtcAudioSinkAdapter(
rtc::scoped_refptr<webrtc::MediaStreamInterface> stream,
base::WeakPtr<AudioStub> audio_stub)
: … { … }
WebrtcAudioSinkAdapter::~WebrtcAudioSinkAdapter() { … }
void WebrtcAudioSinkAdapter::OnData(const void* audio_data,
int bits_per_sample,
int sample_rate,
size_t number_of_channels,
size_t number_of_frames) { … }
}