#include "media/audio/pulse/pulse_loopback_manager.h"
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "media/audio/pulse/audio_manager_pulse.h"
#include "media/audio/pulse/pulse_input.h"
#include "media/audio/pulse/pulse_util.h"
namespace media {
constexpr char kDefaultSinkName[] = …;
std::unique_ptr<PulseLoopbackManager> PulseLoopbackManager::Create(
ReleaseStreamCallback release_stream_callback,
pa_context* context,
pa_threaded_mainloop* mainloop) { … }
PulseLoopbackManager::~PulseLoopbackManager() { … }
PulseLoopbackAudioStream* PulseLoopbackManager::MakeLoopbackStream(
const AudioParameters& params,
AudioManager::LogCallback log_callback) { … }
void PulseLoopbackManager::RemoveStream(AudioInputStream* stream) { … }
const std::string& PulseLoopbackManager::GetLoopbackSourceName() { … }
void PulseLoopbackManager::EventCallback(pa_context* context,
pa_subscription_event_type_t type,
uint32_t index,
void* user_data) { … }
PulseLoopbackManager::PulseLoopbackManager(
const std::string& default_monitor_name,
ReleaseStreamCallback release_stream_callback,
pa_context* context,
pa_threaded_mainloop* mainloop)
: … { … }
void PulseLoopbackManager::OnServerChangeEvent() { … }
}