#include "media/base/fake_audio_worker.h"
#include <utility>
#include "base/cancelable_callback.h"
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/synchronization/lock.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "base/thread_annotations.h"
#include "base/threading/thread_checker.h"
#include "base/time/time.h"
#include "base/trace_event/trace_event.h"
#include "media/base/audio_parameters.h"
#include "media/base/audio_timestamp_helper.h"
namespace media {
class FakeAudioWorker::Worker
: public base::RefCountedThreadSafe<FakeAudioWorker::Worker> { … };
FakeAudioWorker::FakeAudioWorker(
const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner,
const AudioParameters& params)
: … { … }
FakeAudioWorker::~FakeAudioWorker() { … }
void FakeAudioWorker::Start(FakeAudioWorker::Callback worker_cb) { … }
void FakeAudioWorker::Stop() { … }
base::TimeDelta FakeAudioWorker::ComputeFakeOutputDelay(
const AudioParameters& params) { … }
FakeAudioWorker::Worker::Worker(
const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner,
const AudioParameters& params)
: … { … }
FakeAudioWorker::Worker::~Worker() { … }
bool FakeAudioWorker::Worker::IsStopped() { … }
void FakeAudioWorker::Worker::Start(FakeAudioWorker::Callback worker_cb) { … }
void FakeAudioWorker::Worker::DoStart() { … }
void FakeAudioWorker::Worker::Stop() { … }
void FakeAudioWorker::Worker::DoCancel() { … }
void FakeAudioWorker::Worker::DoRead() { … }
}