#include "media/audio/pulse/pulse_output.h"
#include <pulse/pulseaudio.h>
#include <stdint.h>
#include "base/compiler_specific.h"
#include "base/metrics/histogram_macros.h"
#include "base/strings/stringprintf.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
#include "base/trace_event/typed_macros.h"
#include "media/audio/audio_device_description.h"
#include "media/audio/audio_manager_base.h"
#include "media/audio/pulse/pulse_util.h"
#include "media/base/audio_sample_types.h"
namespace media {
AutoPulseLock;
WaitForOperationCompletion;
void PulseAudioOutputStream::StreamNotifyCallback(pa_stream* s, void* p_this) { … }
void PulseAudioOutputStream::StreamRequestCallback(pa_stream* s, size_t len,
void* p_this) { … }
PulseAudioOutputStream::PulseAudioOutputStream(
const AudioParameters& params,
const std::string& device_id,
AudioManagerBase* manager,
AudioManager::LogCallback log_callback)
: … { … }
PulseAudioOutputStream::~PulseAudioOutputStream() { … }
bool PulseAudioOutputStream::Open() { … }
void PulseAudioOutputStream::Reset() { … }
void PulseAudioOutputStream::Close() { … }
void PulseAudioOutputStream::Flush() { … }
void PulseAudioOutputStream::SendLogMessage(const char* format, ...) { … }
void PulseAudioOutputStream::FulfillWriteRequest(size_t requested_bytes) { … }
void PulseAudioOutputStream::Start(AudioSourceCallback* callback) { … }
void PulseAudioOutputStream::Stop() { … }
void PulseAudioOutputStream::SetVolume(double volume) { … }
void PulseAudioOutputStream::GetVolume(double* volume) { … }
}