chromium/media/audio/alsa/alsa_wrapper.cc

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

#include "media/audio/alsa/alsa_wrapper.h"

namespace media {

AlsaWrapper::AlsaWrapper() = default;

AlsaWrapper::~AlsaWrapper() = default;

int AlsaWrapper::PcmOpen(snd_pcm_t** handle,
                         const char* name,
                         snd_pcm_stream_t stream,
                         int mode) {}

int AlsaWrapper::DeviceNameHint(int card, const char* iface, void*** hints) {}

char* AlsaWrapper::DeviceNameGetHint(const void* hint, const char* id) {}

int AlsaWrapper::DeviceNameFreeHint(void** hints) {}

int AlsaWrapper::CardNext(int* rcard) {}

int AlsaWrapper::PcmClose(snd_pcm_t* handle) {}

int AlsaWrapper::PcmPrepare(snd_pcm_t* handle) {}

int AlsaWrapper::PcmDrain(snd_pcm_t* handle) {}

int AlsaWrapper::PcmDrop(snd_pcm_t* handle) {}

int AlsaWrapper::PcmDelay(snd_pcm_t* handle, snd_pcm_sframes_t* delay) {}

int AlsaWrapper::PcmResume(snd_pcm_t* handle) {}

snd_pcm_sframes_t AlsaWrapper::PcmWritei(snd_pcm_t* handle,
                                         const void* buffer,
                                         snd_pcm_uframes_t size) {}

snd_pcm_sframes_t AlsaWrapper::PcmReadi(snd_pcm_t* handle,
                                        void* buffer,
                                        snd_pcm_uframes_t size) {}

int AlsaWrapper::PcmRecover(snd_pcm_t* handle, int err, int silent) {}

const char* AlsaWrapper::PcmName(snd_pcm_t* handle) {}

int AlsaWrapper::PcmSetParams(snd_pcm_t* handle,
                              snd_pcm_format_t format,
                              snd_pcm_access_t access,
                              unsigned int channels,
                              unsigned int rate,
                              int soft_resample,
                              unsigned int latency) {}

int AlsaWrapper::PcmGetParams(snd_pcm_t* handle,
                              snd_pcm_uframes_t* buffer_size,
                              snd_pcm_uframes_t* period_size) {}

int AlsaWrapper::PcmHwParamsMalloc(snd_pcm_hw_params_t** hw_params) {}

int AlsaWrapper::PcmHwParamsAny(snd_pcm_t* handle,
                                snd_pcm_hw_params_t* hw_params) {}

int AlsaWrapper::PcmHwParamsCanResume(snd_pcm_hw_params_t* hw_params) {}

int AlsaWrapper::PcmHwParamsSetRateResample(snd_pcm_t* handle,
                                            snd_pcm_hw_params_t* hw_params,
                                            unsigned int value) {}

int AlsaWrapper::PcmHwParamsSetRateNear(snd_pcm_t* handle,
                                        snd_pcm_hw_params_t* hw_params,
                                        unsigned int* rate,
                                        int* direction) {}

int AlsaWrapper::PcmHwParamsTestFormat(snd_pcm_t* handle,
                                       snd_pcm_hw_params_t* hw_params,
                                       snd_pcm_format_t format) {}

int AlsaWrapper::PcmFormatSize(snd_pcm_format_t format, size_t samples) {}

int AlsaWrapper::PcmHwParamsGetChannelsMin(const snd_pcm_hw_params_t* hw_params,
                                           unsigned int* min_channels) {}

int AlsaWrapper::PcmHwParamsGetChannelsMax(const snd_pcm_hw_params_t* hw_params,
                                           unsigned int* max_channels) {}

int AlsaWrapper::PcmHwParamsSetFormat(snd_pcm_t* handle,
                                      snd_pcm_hw_params_t* hw_params,
                                      snd_pcm_format_t format) {}

int AlsaWrapper::PcmHwParamsSetAccess(snd_pcm_t* handle,
                                      snd_pcm_hw_params_t* hw_params,
                                      snd_pcm_access_t access) {}

int AlsaWrapper::PcmHwParamsSetChannels(snd_pcm_t* handle,
                                        snd_pcm_hw_params_t* hw_params,
                                        unsigned int channels) {}

int AlsaWrapper::PcmHwParamsSetBufferSizeNear(snd_pcm_t* handle,
                                              snd_pcm_hw_params_t* hw_params,
                                              snd_pcm_uframes_t* buffer_size) {}

int AlsaWrapper::PcmHwParamsSetPeriodSizeNear(snd_pcm_t* handle,
                                              snd_pcm_hw_params_t* hw_params,
                                              snd_pcm_uframes_t* period_size,
                                              int* direction) {}

int AlsaWrapper::PcmHwParams(snd_pcm_t* handle,
                             snd_pcm_hw_params_t* hw_params) {}

void AlsaWrapper::PcmHwParamsFree(snd_pcm_hw_params_t* hw_params) {}

int AlsaWrapper::PcmSwParamsMalloc(snd_pcm_sw_params_t** sw_params) {}

int AlsaWrapper::PcmSwParamsCurrent(snd_pcm_t* handle,
                                    snd_pcm_sw_params_t* sw_params) {}

int AlsaWrapper::PcmSwParamsSetStartThreshold(
    snd_pcm_t* handle,
    snd_pcm_sw_params_t* sw_params,
    snd_pcm_uframes_t start_threshold) {}

int AlsaWrapper::PcmSwParamsSetAvailMin(snd_pcm_t* handle,
                                        snd_pcm_sw_params_t* sw_params,
                                        snd_pcm_uframes_t period_size) {}

int AlsaWrapper::PcmSwParams(snd_pcm_t* handle,
                             snd_pcm_sw_params_t* sw_params) {}

void AlsaWrapper::PcmSwParamsFree(snd_pcm_sw_params_t* sw_params) {}

snd_pcm_sframes_t AlsaWrapper::PcmAvailUpdate(snd_pcm_t* handle) {}

snd_pcm_state_t AlsaWrapper::PcmState(snd_pcm_t* handle) {}

const char* AlsaWrapper::StrError(int errnum) {}

int AlsaWrapper::PcmStart(snd_pcm_t* handle) {}

int AlsaWrapper::MixerOpen(snd_mixer_t** mixer, int mode) {}

int AlsaWrapper::MixerAttach(snd_mixer_t* mixer, const char* name) {}

int AlsaWrapper::MixerElementRegister(snd_mixer_t* mixer,
                                      struct snd_mixer_selem_regopt* options,
                                      snd_mixer_class_t** classp) {}

void AlsaWrapper::MixerFree(snd_mixer_t* mixer) {}

int AlsaWrapper::MixerDetach(snd_mixer_t* mixer, const char* name) {}

int AlsaWrapper::MixerClose(snd_mixer_t* mixer) {}

int AlsaWrapper::MixerLoad(snd_mixer_t* mixer) {}

snd_mixer_elem_t* AlsaWrapper::MixerFirstElem(snd_mixer_t* mixer) {}

snd_mixer_elem_t* AlsaWrapper::MixerNextElem(snd_mixer_elem_t* elem) {}

int AlsaWrapper::MixerSelemIsActive(snd_mixer_elem_t* elem) {}

const char* AlsaWrapper::MixerSelemName(snd_mixer_elem_t* elem) {}

int AlsaWrapper::MixerSelemSetCaptureVolumeAll(snd_mixer_elem_t* elem,
                                               long value) {}

int AlsaWrapper::MixerSelemGetCaptureVolume(
    snd_mixer_elem_t* elem,
    snd_mixer_selem_channel_id_t channel,
    long* value) {}

int AlsaWrapper::MixerSelemHasCaptureVolume(snd_mixer_elem_t* elem) {}

int AlsaWrapper::MixerSelemGetCaptureVolumeRange(snd_mixer_elem_t* elem,
                                                 long* min,
                                                 long* max) {}

void* AlsaWrapper::MixerElemGetCallbackPrivate(const snd_mixer_elem_t* obj) {}

void AlsaWrapper::MixerElemSetCallback(snd_mixer_elem_t* obj,
                                       snd_mixer_elem_callback_t val) {}

void AlsaWrapper::MixerElemSetCallbackPrivate(snd_mixer_elem_t* obj,
                                              void* val) {}

snd_mixer_elem_t* AlsaWrapper::MixerFindSelem(snd_mixer_t* mixer,
                                              const snd_mixer_selem_id_t* id) {}

int AlsaWrapper::MixerHandleEvents(snd_mixer_t* mixer) {}

int AlsaWrapper::MixerPollDescriptors(snd_mixer_t* mixer,
                                      struct pollfd* pfds,
                                      unsigned int space) {}

int AlsaWrapper::MixerPollDescriptorsCount(snd_mixer_t* mixer) {}

int AlsaWrapper::MixerSelemGetPlaybackSwitch(
    snd_mixer_elem_t* elem,
    snd_mixer_selem_channel_id_t channel,
    int* value) {}

int AlsaWrapper::MixerSelemGetPlaybackVolume(
    snd_mixer_elem_t* elem,
    snd_mixer_selem_channel_id_t channel,
    long* value) {}

int AlsaWrapper::MixerSelemGetPlaybackVolumeRange(snd_mixer_elem_t* elem,
                                                  long* min,
                                                  long* max) {}

int AlsaWrapper::MixerSelemAskPlaybackVolDb(snd_mixer_elem_t* elem,
                                            long value,
                                            long* db_value) {}

int AlsaWrapper::MixerSelemAskPlaybackDbVol(snd_mixer_elem_t* elem,
                                            long db_value,
                                            long* value) {}

int AlsaWrapper::MixerSelemHasPlaybackSwitch(snd_mixer_elem_t* elem) {}

int AlsaWrapper::MixerSelemHasPlaybackVolume(snd_mixer_elem_t* elem) {}

void AlsaWrapper::MixerSelemIdSetIndex(snd_mixer_selem_id_t* obj,
                                       unsigned int val) {}

void AlsaWrapper::MixerSelemIdSetName(snd_mixer_selem_id_t* obj,
                                      const char* val) {}

int AlsaWrapper::MixerSelemSetPlaybackSwitch(
    snd_mixer_elem_t* elem,
    snd_mixer_selem_channel_id_t channel,
    int value) {}

int AlsaWrapper::MixerSelemSetPlaybackSwitchAll(
    snd_mixer_elem_t* elem,
    int value) {}

int AlsaWrapper::MixerSelemSetPlaybackVolumeAll(snd_mixer_elem_t* elem,
                                                long value) {}

int AlsaWrapper::MixerSelemIdMalloc(snd_mixer_selem_id_t** ptr) {}

void AlsaWrapper::MixerSelemIdFree(snd_mixer_selem_id_t* obj) {}

}  // namespace media