#include "remoting/host/audio_capturer_linux.h"
#include <stdint.h>
#include <utility>
#include "base/check.h"
#include "base/files/file_path.h"
#include "base/lazy_instance.h"
#include "base/memory/ptr_util.h"
#include "base/task/single_thread_task_runner.h"
#include "remoting/proto/audio.pb.h"
namespace remoting {
namespace {
base::LazyInstance<scoped_refptr<AudioPipeReader>>::Leaky
g_pulseaudio_pipe_sink_reader = LAZY_INSTANCE_INITIALIZER;
}
void AudioCapturerLinux::InitializePipeReader(
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
const base::FilePath& pipe_name) { … }
AudioCapturerLinux::AudioCapturerLinux(
scoped_refptr<AudioPipeReader> pipe_reader)
: … { … }
AudioCapturerLinux::~AudioCapturerLinux() { … }
bool AudioCapturerLinux::Start(const PacketCapturedCallback& callback) { … }
void AudioCapturerLinux::OnDataRead(
scoped_refptr<base::RefCountedString> data) { … }
bool AudioCapturer::IsSupported() { … }
std::unique_ptr<AudioCapturer> AudioCapturer::Create() { … }
}