chromium/media/audio/pulse/pulse_input.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "media/audio/pulse/pulse_input.h"

#include <stdint.h>

#include "base/check.h"
#include "base/strings/stringprintf.h"
#include "media/audio/audio_device_description.h"
#include "media/audio/pulse/audio_manager_pulse.h"
#include "media/audio/pulse/pulse_util.h"
#include "media/base/audio_timestamp_helper.h"

namespace media {

AutoPulseLock;
WaitForOperationCompletion;

// Number of blocks of buffers used in the |fifo_|.
const int kNumberOfBlocksBufferInFifo =;

PulseAudioInputStream::PulseAudioInputStream(
    AudioManagerPulse* audio_manager,
    const std::string& source_name,
    const AudioParameters& params,
    pa_threaded_mainloop* mainloop,
    pa_context* context,
    AudioManager::LogCallback log_callback)
    :{}

PulseAudioInputStream::~PulseAudioInputStream() {}

AudioInputStream::OpenOutcome PulseAudioInputStream::Open() {}

void PulseAudioInputStream::Start(AudioInputCallback* callback) {}

void PulseAudioInputStream::Stop() {}

void PulseAudioInputStream::Close() {}

double PulseAudioInputStream::GetMaxVolume() {}

void PulseAudioInputStream::SetVolume(double volume) {}

double PulseAudioInputStream::GetVolume() {}

bool PulseAudioInputStream::IsMuted() {}

void PulseAudioInputStream::SetOutputDeviceForAec(
    const std::string& output_device_id) {}

void PulseAudioInputStream::SendLogMessage(const char* format, ...) {}

// static, used by pa_stream_set_read_callback.
void PulseAudioInputStream::ReadCallback(pa_stream* handle,
                                         size_t length,
                                         void* user_data) {}

// static, used by pa_context_get_source_info_by_index.
void PulseAudioInputStream::VolumeCallback(pa_context* context,
                                           const pa_source_info* info,
                                           int error, void* user_data) {}

// static, used by pa_context_get_source_info_by_index.
void PulseAudioInputStream::MuteCallback(pa_context* context,
                                         const pa_source_info* info,
                                         int error,
                                         void* user_data) {}

// static, used by pa_stream_set_state_callback.
void PulseAudioInputStream::StreamNotifyCallback(pa_stream* s,
                                                 void* user_data) {}

void PulseAudioInputStream::ReadData() {}

bool PulseAudioInputStream::GetSourceInformation(pa_source_info_cb_t callback) {}

}  // namespace media