#include "remoting/protocol/audio_decode_scheduler.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "remoting/codec/audio_decoder.h"
#include "remoting/proto/audio.pb.h"
#include "remoting/protocol/audio_stub.h"
namespace remoting::protocol {
AudioDecodeScheduler::AudioDecodeScheduler(
scoped_refptr<base::SingleThreadTaskRunner> audio_decode_task_runner,
base::WeakPtr<protocol::AudioStub> audio_consumer)
: … { … }
AudioDecodeScheduler::~AudioDecodeScheduler() { … }
void AudioDecodeScheduler::Initialize(const protocol::SessionConfig& config) { … }
void AudioDecodeScheduler::ProcessAudioPacket(
std::unique_ptr<AudioPacket> packet,
base::OnceClosure done) { … }
void AudioDecodeScheduler::ProcessDecodedPacket(
base::OnceClosure done,
std::unique_ptr<AudioPacket> packet) { … }
}