Logo Search packages:      
Sourcecode: alsa-lib version File versions  Download package

Defines | Functions | Variables

pcm.c File Reference

PCM Interface. More...

#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdarg.h>
#include <signal.h>
#include <dlfcn.h>
#include <sys/poll.h>
#include <sys/shm.h>
#include <sys/mman.h>
#include <limits.h>
#include "pcm_local.h"
Include dependency graph for pcm.c:

Go to the source code of this file.

Defines

#define __OLD_GET(name, val_type, ret_type)   __P_OLD_GET(__old_, name, val_type, ret_type)
#define __OLD_GET1(name, val_type, ret_type)   __P_OLD_GET1(__old_, name, val_type, ret_type)
#define __OLD_GET_SW(name, ret_type)   __P_OLD_GET_SW(__old_, name, ret_type)
#define __OLD_NEAR(name, ret_type)   __P_OLD_NEAR(__old_, name, ret_type)
#define __OLD_NEAR1(name, ret_type)   __P_OLD_NEAR1(__old_, name, ret_type)
#define __OLD_SET_FL(name, ret_type)   __P_OLD_SET_FL(__old_, name, ret_type)
#define __OLD_SET_FL1(name, ret_type)   __P_OLD_SET_FL1(__old_, name, ret_type)
#define __P_OLD_GET(pfx, name, val_type, ret_type)
#define __P_OLD_GET1(pfx, name, val_type, ret_type)
#define __P_OLD_GET_SW(pfx, name, ret_type)
#define __P_OLD_NEAR(pfx, name, ret_type)
#define __P_OLD_NEAR1(pfx, name, ret_type)
#define __P_OLD_SET_FL(pfx, name, ret_type)
#define __P_OLD_SET_FL1(pfx, name, ret_type)
#define ACCESS(v)   [SND_PCM_ACCESS_##v] = #v
#define FORMAT(v)   [SND_PCM_FORMAT_##v] = #v
#define FORMATD(v, d)   [SND_PCM_FORMAT_##v] = d
#define HW_PARAM(v)   [SND_PCM_HW_PARAM_##v] = #v
#define OBSOLETE1(name, what, new)   use_default_symbol_version(__##name, name, new);
#define PCMTYPE(v)   [SND_PCM_TYPE_##v] = #v
#define READY(v)   [SND_PCM_READY_##v] = #v
#define SILENCE(v)   [SND_PCM_SILENCE_##v] = #v
#define START(v)   [SND_PCM_START_##v] = #v
#define STATE(v)   [SND_PCM_STATE_##v] = #v
#define STREAM(v)   [SND_PCM_STREAM_##v] = #v
#define SUBFORMAT(v)   [SND_PCM_SUBFORMAT_##v] = #v
#define SUBFORMATD(v, d)   [SND_PCM_SUBFORMAT_##v] = d
#define SW_PARAM(v)   [SND_PCM_SW_PARAM_##v] = #v
#define TSTAMP(v)   [SND_PCM_TSTAMP_##v] = #v
#define XRUN(v)   [SND_PCM_XRUN_##v] = #v

Functions

 __OLD_GET (snd_pcm_hw_params_get_access, snd_pcm_access_t, int)
 __OLD_GET (snd_pcm_hw_params_get_format, snd_pcm_format_t, int)
 __OLD_GET (snd_pcm_hw_params_get_subformat, snd_pcm_subformat_t, int)
 __OLD_GET (snd_pcm_hw_params_get_channels, unsigned int, int)
 __OLD_GET (snd_pcm_hw_params_get_buffer_size, snd_pcm_uframes_t, snd_pcm_sframes_t)
 __OLD_GET (snd_pcm_hw_params_get_channels_min, unsigned int, unsigned int)
 __OLD_GET (snd_pcm_hw_params_get_buffer_size_min, snd_pcm_uframes_t, snd_pcm_uframes_t)
 __OLD_GET (snd_pcm_hw_params_get_channels_max, unsigned int, unsigned int)
 __OLD_GET (snd_pcm_hw_params_get_buffer_size_max, snd_pcm_uframes_t, snd_pcm_uframes_t)
 __OLD_GET1 (snd_pcm_hw_params_get_rate, unsigned int, int)
 __OLD_GET1 (snd_pcm_hw_params_get_period_time, unsigned int, int)
 __OLD_GET1 (snd_pcm_hw_params_get_period_size, snd_pcm_uframes_t, snd_pcm_sframes_t)
 __OLD_GET1 (snd_pcm_hw_params_get_buffer_time, unsigned int, int)
 __OLD_GET1 (snd_pcm_hw_params_get_tick_time, unsigned int, int)
 __OLD_GET1 (snd_pcm_hw_params_get_periods, unsigned int, int)
 __OLD_GET1 (snd_pcm_hw_params_get_rate_min, unsigned int, unsigned int)
 __OLD_GET1 (snd_pcm_hw_params_get_period_time_min, unsigned int, unsigned int)
 __OLD_GET1 (snd_pcm_hw_params_get_period_size_min, snd_pcm_uframes_t, snd_pcm_uframes_t)
 __OLD_GET1 (snd_pcm_hw_params_get_periods_min, unsigned int, unsigned int)
 __OLD_GET1 (snd_pcm_hw_params_get_buffer_time_min, unsigned int, unsigned int)
 __OLD_GET1 (snd_pcm_hw_params_get_tick_time_min, unsigned int, unsigned int)
 __OLD_GET1 (snd_pcm_hw_params_get_rate_max, unsigned int, unsigned int)
 __OLD_GET1 (snd_pcm_hw_params_get_period_time_max, unsigned int, unsigned int)
 __OLD_GET1 (snd_pcm_hw_params_get_period_size_max, snd_pcm_uframes_t, snd_pcm_uframes_t)
 __OLD_GET1 (snd_pcm_hw_params_get_periods_max, unsigned int, unsigned int)
 __OLD_GET1 (snd_pcm_hw_params_get_buffer_time_max, unsigned int, unsigned int)
 __OLD_GET1 (snd_pcm_hw_params_get_tick_time_max, unsigned int, unsigned int)
 __OLD_GET_SW (snd_pcm_sw_params_get_tstamp_mode, snd_pcm_tstamp_t)
 __OLD_GET_SW (snd_pcm_sw_params_get_sleep_min, unsigned int)
 __OLD_GET_SW (snd_pcm_sw_params_get_avail_min, snd_pcm_uframes_t)
 __OLD_GET_SW (snd_pcm_sw_params_get_xfer_align, snd_pcm_uframes_t)
 __OLD_GET_SW (snd_pcm_sw_params_get_start_threshold, snd_pcm_uframes_t)
 __OLD_GET_SW (snd_pcm_sw_params_get_stop_threshold, snd_pcm_uframes_t)
 __OLD_GET_SW (snd_pcm_sw_params_get_silence_threshold, snd_pcm_uframes_t)
 __OLD_GET_SW (snd_pcm_sw_params_get_silence_size, snd_pcm_uframes_t)
 __OLD_NEAR (snd_pcm_hw_params_set_channels_near, unsigned int)
 __OLD_NEAR (snd_pcm_hw_params_set_buffer_size_near, snd_pcm_uframes_t)
 __OLD_NEAR1 (snd_pcm_hw_params_set_rate_near, unsigned int)
 __OLD_NEAR1 (snd_pcm_hw_params_set_period_time_near, unsigned int)
 __OLD_NEAR1 (snd_pcm_hw_params_set_period_size_near, snd_pcm_uframes_t)
 __OLD_NEAR1 (snd_pcm_hw_params_set_periods_near, unsigned int)
 __OLD_NEAR1 (snd_pcm_hw_params_set_buffer_time_near, unsigned int)
 __OLD_NEAR1 (snd_pcm_hw_params_set_tick_time_near, unsigned int)
 __OLD_SET_FL (snd_pcm_hw_params_set_access_first, snd_pcm_access_t)
 __OLD_SET_FL (snd_pcm_hw_params_set_format_first, snd_pcm_format_t)
 __OLD_SET_FL (snd_pcm_hw_params_set_subformat_first, snd_pcm_subformat_t)
 __OLD_SET_FL (snd_pcm_hw_params_set_channels_first, unsigned int)
 __OLD_SET_FL (snd_pcm_hw_params_set_buffer_size_first, snd_pcm_uframes_t)
 __OLD_SET_FL (snd_pcm_hw_params_set_access_last, snd_pcm_access_t)
 __OLD_SET_FL (snd_pcm_hw_params_set_format_last, snd_pcm_format_t)
 __OLD_SET_FL (snd_pcm_hw_params_set_subformat_last, snd_pcm_subformat_t)
 __OLD_SET_FL (snd_pcm_hw_params_set_channels_last, unsigned int)
 __OLD_SET_FL (snd_pcm_hw_params_set_buffer_size_last, snd_pcm_uframes_t)
 __OLD_SET_FL1 (snd_pcm_hw_params_set_period_size_first, snd_pcm_uframes_t)
 __OLD_SET_FL1 (snd_pcm_hw_params_set_periods_first, unsigned int)
 __OLD_SET_FL1 (snd_pcm_hw_params_set_rate_first, unsigned int)
 __OLD_SET_FL1 (snd_pcm_hw_params_set_buffer_time_first, unsigned int)
 __OLD_SET_FL1 (snd_pcm_hw_params_set_period_time_first, unsigned int)
 __OLD_SET_FL1 (snd_pcm_hw_params_set_tick_time_first, unsigned int)
 __OLD_SET_FL1 (snd_pcm_hw_params_set_rate_last, unsigned int)
 __OLD_SET_FL1 (snd_pcm_hw_params_set_period_time_last, unsigned int)
 __OLD_SET_FL1 (snd_pcm_hw_params_set_period_size_last, snd_pcm_uframes_t)
 __OLD_SET_FL1 (snd_pcm_hw_params_set_periods_last, unsigned int)
 __OLD_SET_FL1 (snd_pcm_hw_params_set_buffer_time_last, unsigned int)
 __OLD_SET_FL1 (snd_pcm_hw_params_set_tick_time_last, unsigned int)
snd_pcm_uframes_t _snd_pcm_boundary (snd_pcm_t *pcm)
int _snd_pcm_link_descriptors (snd_pcm_t *pcm, int *fds, int count, int(**failed)(snd_pcm_t *, int))
snd_pcm_uframes_t _snd_pcm_mmap_hw_ptr (snd_pcm_t *pcm)
int _snd_pcm_poll_descriptor (snd_pcm_t *pcm)
static void dump_one_param (snd_pcm_hw_params_t *params, unsigned int k, snd_output_t *out)
 link_warning (snd_pcm_start_mode_name,"Warning: start_mode is deprecated, consider to use start_threshold")
 link_warning (snd_pcm_xrun_mode_name,"Warning: xrun_mode is deprecated, consider to use stop_threshold")
 link_warning (_snd_pcm_mmap_hw_ptr,"Warning: _snd_pcm_mmap_hw_ptr() is deprecated, consider to not use this function")
 link_warning (_snd_pcm_boundary,"Warning: _snd_pcm_boundary() is deprecated, consider to use snd_pcm_sw_params_current()")
 link_warning (snd_pcm_sw_params_set_start_mode,"Warning: start_mode is deprecated, consider to use start_threshold")
 link_warning (snd_pcm_sw_params_get_start_mode,"Warning: start_mode is deprecated, consider to use start_threshold")
 link_warning (snd_pcm_sw_params_set_xrun_mode,"Warning: xrun_mode is deprecated, consider to use stop_threshold")
 link_warning (snd_pcm_sw_params_get_xrun_mode,"Warning: xrun_mode is deprecated, consider to use stop_threshold")
 OBSOLETE1 (snd_pcm_hw_params_get_buffer_size, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_sw_params_get_start_threshold, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_tick_time_max, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_buffer_size_first, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_period_size_max, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_format_last, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_rate_max, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_period_time, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_channels_first, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_periods, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_periods_first, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_access, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_access_first, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_access_last, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_format, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_format_first, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_subformat, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_subformat_first, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_subformat_last, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_channels, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_channels_min, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_channels_max, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_channels_near, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_channels_last, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_rate, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_rate_min, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_rate_near, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_rate_first, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_rate_last, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_period_time_min, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_period_time_max, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_period_time_near, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_period_time_first, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_period_time_last, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_period_size, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_period_size_min, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_period_size_near, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_period_size_first, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_period_size_last, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_periods_min, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_periods_max, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_periods_near, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_periods_last, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_buffer_time, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_buffer_time_min, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_buffer_time_max, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_buffer_time_near, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_buffer_time_first, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_buffer_time_last, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_buffer_size_min, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_buffer_size_max, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_buffer_size_near, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_buffer_size_last, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_tick_time, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_get_tick_time_min, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_tick_time_near, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_tick_time_first, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_hw_params_set_tick_time_last, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_sw_params_get_tstamp_mode, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_sw_params_get_sleep_min, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_sw_params_get_avail_min, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_sw_params_get_xfer_align, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_sw_params_get_stop_threshold, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_sw_params_get_silence_threshold, ALSA_0.9, ALSA_0.9.0rc4)
 OBSOLETE1 (snd_pcm_sw_params_get_silence_size, ALSA_0.9, ALSA_0.9.0rc4)
int snd_async_add_pcm_handler (snd_async_handler_t **handler, snd_pcm_t *pcm, snd_async_callback_t callback, void *private_data)
 Add an async handler for a PCM.
snd_pcm_tsnd_async_handler_get_pcm (snd_async_handler_t *handler)
 Return PCM handle related to an async handler.
void snd_pcm_access_mask_any (snd_pcm_access_mask_t *mask)
 set all bits in a snd_pcm_access_mask_t
void snd_pcm_access_mask_copy (snd_pcm_access_mask_t *dst, const snd_pcm_access_mask_t *src)
 copy one snd_pcm_access_mask_t to another
int snd_pcm_access_mask_empty (const snd_pcm_access_mask_t *mask)
 test, if given a snd_pcm_access_mask_t is empty
void snd_pcm_access_mask_free (snd_pcm_access_mask_t *obj)
 frees a previously allocated snd_pcm_access_mask_t
int snd_pcm_access_mask_malloc (snd_pcm_access_mask_t **ptr)
 allocate an empty snd_pcm_access_mask_t using standard malloc
void snd_pcm_access_mask_none (snd_pcm_access_mask_t *mask)
 reset all bits in a snd_pcm_access_mask_t
void snd_pcm_access_mask_reset (snd_pcm_access_mask_t *mask, snd_pcm_access_t val)
 make an access type missing from a snd_pcm_access_mask_t
void snd_pcm_access_mask_set (snd_pcm_access_mask_t *mask, snd_pcm_access_t val)
 make an access type present in a snd_pcm_access_mask_t
size_t snd_pcm_access_mask_sizeof ()
 get size of snd_pcm_access_mask_t
int snd_pcm_access_mask_test (const snd_pcm_access_mask_t *mask, snd_pcm_access_t val)
 test the presence of an access type in a snd_pcm_access_mask_t
const char * snd_pcm_access_name (snd_pcm_access_t acc)
 get name of PCM access type
int snd_pcm_area_copy (const snd_pcm_channel_area_t *dst_area, snd_pcm_uframes_t dst_offset, const snd_pcm_channel_area_t *src_area, snd_pcm_uframes_t src_offset, unsigned int samples, snd_pcm_format_t format)
 Copy an area.
int snd_pcm_area_silence (const snd_pcm_channel_area_t *dst_area, snd_pcm_uframes_t dst_offset, unsigned int samples, snd_pcm_format_t format)
 Silence an area.
int snd_pcm_areas_copy (const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t dst_offset, const snd_pcm_channel_area_t *src_areas, snd_pcm_uframes_t src_offset, unsigned int channels, snd_pcm_uframes_t frames, snd_pcm_format_t format)
 Copy one or more areas.
void snd_pcm_areas_from_buf (snd_pcm_t *pcm, snd_pcm_channel_area_t *areas, void *buf)
void snd_pcm_areas_from_bufs (snd_pcm_t *pcm, snd_pcm_channel_area_t *areas, void **bufs)
int snd_pcm_areas_silence (const snd_pcm_channel_area_t *dst_areas, snd_pcm_uframes_t dst_offset, unsigned int channels, snd_pcm_uframes_t frames, snd_pcm_format_t format)
 Silence one or more areas.
int snd_pcm_async (snd_pcm_t *pcm, int sig, pid_t pid)
 set async mode
snd_pcm_sframes_t snd_pcm_avail_update (snd_pcm_t *pcm)
 Return number of frames ready to be read/written.
snd_pcm_sframes_t snd_pcm_bytes_to_frames (snd_pcm_t *pcm, ssize_t bytes)
 Convert bytes in frames for a PCM.
long snd_pcm_bytes_to_samples (snd_pcm_t *pcm, ssize_t bytes)
 Convert bytes in samples for a PCM.
int snd_pcm_close (snd_pcm_t *pcm)
 close PCM handle
int snd_pcm_conf_generic_id (const char *id)
int snd_pcm_delay (snd_pcm_t *pcm, snd_pcm_sframes_t *delayp)
 Obtain delay for a running PCM handle.
int snd_pcm_drain (snd_pcm_t *pcm)
 Stop a PCM preserving pending frames.
int snd_pcm_drop (snd_pcm_t *pcm)
 Stop a PCM dropping pending frames.
int snd_pcm_dump (snd_pcm_t *pcm, snd_output_t *out)
 Dump PCM info.
int snd_pcm_dump_hw_setup (snd_pcm_t *pcm, snd_output_t *out)
 Dump current hardware setup for PCM.
int snd_pcm_dump_setup (snd_pcm_t *pcm, snd_output_t *out)
 Dump current setup (hardware and software) for PCM.
int snd_pcm_dump_sw_setup (snd_pcm_t *pcm, snd_output_t *out)
 Dump current software setup for PCM.
const char * snd_pcm_format_description (snd_pcm_format_t format)
 get description of PCM sample format
void snd_pcm_format_mask_any (snd_pcm_format_mask_t *mask)
 set all bits in a snd_pcm_format_mask_t
void snd_pcm_format_mask_copy (snd_pcm_format_mask_t *dst, const snd_pcm_format_mask_t *src)
 copy one snd_pcm_format_mask_t to another
int snd_pcm_format_mask_empty (const snd_pcm_format_mask_t *mask)
 test, if given a snd_pcm_format_mask_t is empty
void snd_pcm_format_mask_free (snd_pcm_format_mask_t *obj)
 frees a previously allocated snd_pcm_format_mask_t
int snd_pcm_format_mask_malloc (snd_pcm_format_mask_t **ptr)
 allocate an empty snd_pcm_format_mask_t using standard malloc
void snd_pcm_format_mask_none (snd_pcm_format_mask_t *mask)
 reset all bits in a snd_pcm_format_mask_t
void snd_pcm_format_mask_reset (snd_pcm_format_mask_t *mask, snd_pcm_format_t val)
 make a format missing from a snd_pcm_format_mask_t
void snd_pcm_format_mask_set (snd_pcm_format_mask_t *mask, snd_pcm_format_t val)
 make a format present in a snd_pcm_format_mask_t
size_t snd_pcm_format_mask_sizeof ()
 get size of snd_pcm_format_mask_t
int snd_pcm_format_mask_test (const snd_pcm_format_mask_t *mask, snd_pcm_format_t val)
 test the presence of a format in a snd_pcm_format_mask_t
const char * snd_pcm_format_name (snd_pcm_format_t format)
 get name of PCM sample format
snd_pcm_format_t snd_pcm_format_value (const char *name)
 get PCM sample format from name
snd_pcm_sframes_t INTERNAL() snd_pcm_forward (snd_pcm_t *pcm, snd_pcm_uframes_t frames)
 Move application frame position forward.
ssize_t snd_pcm_frames_to_bytes (snd_pcm_t *pcm, snd_pcm_sframes_t frames)
 Convert frames in bytes for a PCM.
int snd_pcm_free (snd_pcm_t *pcm)
int snd_pcm_hw_free (snd_pcm_t *pcm)
 Remove PCM hardware configuration and free associated resources.
int snd_pcm_hw_params (snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
 Install one PCM hardware configuration chosen from a configuration space and snd_pcm_prepare it.
int snd_pcm_hw_params_any (snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
 Fill params with a full configuration space for a PCM.
int snd_pcm_hw_params_can_mmap_sample_resolution (const snd_pcm_hw_params_t *params)
 Check, if hardware supports sample-resolution mmap for given configuration.
int snd_pcm_hw_params_can_overrange (const snd_pcm_hw_params_t *params)
 Check, if hardware supports overrange detection.
int snd_pcm_hw_params_can_pause (const snd_pcm_hw_params_t *params)
 Check, if hardware supports pause.
int snd_pcm_hw_params_can_resume (const snd_pcm_hw_params_t *params)
 Check, if hardware supports resume.
int snd_pcm_hw_params_can_sync_start (const snd_pcm_hw_params_t *params)
 Check, if hardware supports synchronized start with sample resolution.
void snd_pcm_hw_params_copy (snd_pcm_hw_params_t *dst, const snd_pcm_hw_params_t *src)
 copy one snd_pcm_hw_params_t to another
int snd_pcm_hw_params_current (snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
 Retreive current PCM hardware configuration chosen with snd_pcm_hw_params.
int snd_pcm_hw_params_dump (snd_pcm_hw_params_t *params, snd_output_t *out)
 Dump a PCM hardware configuration space.
void snd_pcm_hw_params_free (snd_pcm_hw_params_t *obj)
 frees a previously allocated snd_pcm_hw_params_t
int INTERNAL() snd_pcm_hw_params_get_access (const snd_pcm_hw_params_t *params, snd_pcm_access_t *access)
 Extract access type from a configuration space.
int snd_pcm_hw_params_get_access_mask (snd_pcm_hw_params_t *params, snd_pcm_access_mask_t *mask)
 Get access mask from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_buffer_size (const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val)
 Extract buffer size from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_buffer_size_max (const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val)
 Extract maximum buffer size from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_buffer_size_min (const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val)
 Extract minimum buffer size from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_buffer_time (const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Extract buffer time from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_buffer_time_max (const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Extract maximum buffer time from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_buffer_time_min (const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Extract minimum buffer time from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_channels (const snd_pcm_hw_params_t *params, unsigned int *val)
 Extract channels from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_channels_max (const snd_pcm_hw_params_t *params, unsigned int *val)
 Extract maximum channels count from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_channels_min (const snd_pcm_hw_params_t *params, unsigned int *val)
 Extract minimum channels count from a configuration space.
int snd_pcm_hw_params_get_export_buffer (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val)
 Extract buffer accessibility from a configuration space.
int snd_pcm_hw_params_get_fifo_size (const snd_pcm_hw_params_t *params)
 Get hard are FIFO size info from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_format (const snd_pcm_hw_params_t *params, snd_pcm_format_t *format)
 Extract format from a configuration space.
void snd_pcm_hw_params_get_format_mask (snd_pcm_hw_params_t *params, snd_pcm_format_mask_t *mask)
 Get format mask from a configuration space.
int snd_pcm_hw_params_get_min_align (const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val)
 Get the minimum transfer align value in samples.
int INTERNAL() snd_pcm_hw_params_get_period_size (const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val, int *dir)
 Extract period size from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_period_size_max (const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val, int *dir)
 Extract maximum period size from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_period_size_min (const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val, int *dir)
 Extract minimum period size from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_period_time (const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Extract period time from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_period_time_max (const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Extract maximum period time from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_period_time_min (const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Extract minimum period time from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_periods (const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Extract periods from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_periods_max (const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Extract maximum periods count from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_periods_min (const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Extract minimum periods count from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_rate (const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Extract rate from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_rate_max (const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Extract maximum rate from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_rate_min (const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Extract minimum rate from a configuration space.
int snd_pcm_hw_params_get_rate_numden (const snd_pcm_hw_params_t *params, unsigned int *rate_num, unsigned int *rate_den)
 Get rate exact info from a configuration space.
int snd_pcm_hw_params_get_rate_resample (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val)
 Extract resample state from a configuration space.
int snd_pcm_hw_params_get_sbits (const snd_pcm_hw_params_t *params)
 Get sample resolution info from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_subformat (const snd_pcm_hw_params_t *params, snd_pcm_subformat_t *subformat)
 Extract subformat from a configuration space.
void snd_pcm_hw_params_get_subformat_mask (snd_pcm_hw_params_t *params, snd_pcm_subformat_mask_t *mask)
 Get subformat mask from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_tick_time (const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Extract tick time from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_tick_time_max (const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Extract maximum tick time from a configuration space.
int INTERNAL() snd_pcm_hw_params_get_tick_time_min (const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Extract minimum tick time from a configuration space.
int snd_pcm_hw_params_is_batch (const snd_pcm_hw_params_t *params)
 Check, if hardware does double buffering for data transfers for given configuration.
int snd_pcm_hw_params_is_block_transfer (const snd_pcm_hw_params_t *params)
 Check, if hardware does block transfers for samples for given configuration.
int snd_pcm_hw_params_is_double (const snd_pcm_hw_params_t *params)
 Check, if hardware does double buffering for start/stop for given configuration.
int snd_pcm_hw_params_is_half_duplex (const snd_pcm_hw_params_t *params)
 Check, if hardware does half-duplex only.
int snd_pcm_hw_params_is_joint_duplex (const snd_pcm_hw_params_t *params)
 Check, if hardware does joint-duplex (playback and capture are somewhat correlated)
int snd_pcm_hw_params_malloc (snd_pcm_hw_params_t **ptr)
 allocate an invalid snd_pcm_hw_params_t using standard malloc
int snd_pcm_hw_params_set_access (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t access)
 Restrict a configuration space to contain only one access type.
int INTERNAL() snd_pcm_hw_params_set_access_first (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t *access)
 Restrict a configuration space to contain only its first access type.
int INTERNAL() snd_pcm_hw_params_set_access_last (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t *access)
 Restrict a configuration space to contain only its last access type.
int snd_pcm_hw_params_set_access_mask (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_mask_t *mask)
 Restrict a configuration space to contain only a set of access types.
int snd_pcm_hw_params_set_buffer_size (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t val)
 Restrict a configuration space to contain only one buffer size.
int INTERNAL() snd_pcm_hw_params_set_buffer_size_first (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val)
 Restrict a configuration space to contain only its minimum buffer size.
int INTERNAL() snd_pcm_hw_params_set_buffer_size_last (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val)
 Restrict a configuration space to contain only its maximum buffer size.
int snd_pcm_hw_params_set_buffer_size_max (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val)
 Restrict a configuration space with a maximum buffer size.
int snd_pcm_hw_params_set_buffer_size_min (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val)
 Restrict a configuration space with a minimum buffer size.
int snd_pcm_hw_params_set_buffer_size_minmax (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *min, snd_pcm_uframes_t *max)
 Restrict a configuration space to have buffer sizes in a given range.
int INTERNAL() snd_pcm_hw_params_set_buffer_size_near (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val)
 Restrict a configuration space to have buffer size nearest to a target.
int snd_pcm_hw_params_set_buffer_time (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir)
 Restrict a configuration space to contain only one buffer time.
int INTERNAL() snd_pcm_hw_params_set_buffer_time_first (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space to contain only its minimum buffer time.
int INTERNAL() snd_pcm_hw_params_set_buffer_time_last (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space to contain only its maximum buffered time.
int snd_pcm_hw_params_set_buffer_time_max (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space with a maximum buffer time.
int snd_pcm_hw_params_set_buffer_time_min (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space with a minimum buffer time.
int snd_pcm_hw_params_set_buffer_time_minmax (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *min, int *mindir, unsigned int *max, int *maxdir)
 Restrict a configuration space to have buffer times in a given range.
int INTERNAL() snd_pcm_hw_params_set_buffer_time_near (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space to have buffer time nearest to a target.
int snd_pcm_hw_params_set_channels (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val)
 Restrict a configuration space to contain only one channels count.
int INTERNAL() snd_pcm_hw_params_set_channels_first (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val)
 Restrict a configuration space to contain only its minimum channels count.
int INTERNAL() snd_pcm_hw_params_set_channels_last (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val)
 Restrict a configuration space to contain only its maximum channels count.
int snd_pcm_hw_params_set_channels_max (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val)
 Restrict a configuration space with a maximum channels count.
int snd_pcm_hw_params_set_channels_min (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val)
 Restrict a configuration space with a minimum channels count.
int snd_pcm_hw_params_set_channels_minmax (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *min, unsigned int *max)
 Restrict a configuration space to have channels counts in a given range.
int INTERNAL() snd_pcm_hw_params_set_channels_near (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val)
 Restrict a configuration space to have channels count nearest to a target.
int snd_pcm_hw_params_set_export_buffer (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val)
 Restrict a configuration space to allow the buffer accessible from outside.
int snd_pcm_hw_params_set_format (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t format)
 Restrict a configuration space to contain only one format.
int INTERNAL() snd_pcm_hw_params_set_format_first (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t *format)
 Restrict a configuration space to contain only its first format.
int INTERNAL() snd_pcm_hw_params_set_format_last (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t *format)
 Restrict a configuration space to contain only its last format.
int snd_pcm_hw_params_set_format_mask (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_mask_t *mask)
 Restrict a configuration space to contain only a set of formats.
int snd_pcm_hw_params_set_period_size (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t val, int dir)
 Restrict a configuration space to contain only one period size.
int INTERNAL() snd_pcm_hw_params_set_period_size_first (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val, int *dir)
 Restrict a configuration space to contain only its minimum period size.
int snd_pcm_hw_params_set_period_size_integer (snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
 Restrict a configuration space to contain only integer period sizes.
int INTERNAL() snd_pcm_hw_params_set_period_size_last (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val, int *dir)
 Restrict a configuration space to contain only its maximum period size.
int snd_pcm_hw_params_set_period_size_max (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val, int *dir)
 Restrict a configuration space with a maximum period size.
int snd_pcm_hw_params_set_period_size_min (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val, int *dir)
 Restrict a configuration space with a minimum period size.
int snd_pcm_hw_params_set_period_size_minmax (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *min, int *mindir, snd_pcm_uframes_t *max, int *maxdir)
 Restrict a configuration space to have period sizes in a given range.
int INTERNAL() snd_pcm_hw_params_set_period_size_near (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val, int *dir)
 Restrict a configuration space to have period size nearest to a target.
int snd_pcm_hw_params_set_period_time (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir)
 Restrict a configuration space to contain only one period time.
int INTERNAL() snd_pcm_hw_params_set_period_time_first (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space to contain only its minimum period time.
int INTERNAL() snd_pcm_hw_params_set_period_time_last (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space to contain only its maximum period time.
int snd_pcm_hw_params_set_period_time_max (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space with a maximum period time.
int snd_pcm_hw_params_set_period_time_min (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space with a minimum period time.
int snd_pcm_hw_params_set_period_time_minmax (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *min, int *mindir, unsigned int *max, int *maxdir)
 Restrict a configuration space to have period times in a given range.
int INTERNAL() snd_pcm_hw_params_set_period_time_near (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space to have period time nearest to a target.
int snd_pcm_hw_params_set_periods (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir)
 Restrict a configuration space to contain only one periods count.
int INTERNAL() snd_pcm_hw_params_set_periods_first (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space to contain only its minimum periods count.
int snd_pcm_hw_params_set_periods_integer (snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
 Restrict a configuration space to contain only integer periods counts.
int INTERNAL() snd_pcm_hw_params_set_periods_last (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space to contain only its maximum periods count.
int snd_pcm_hw_params_set_periods_max (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space with a maximum periods count.
int snd_pcm_hw_params_set_periods_min (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space with a minimum periods count.
int snd_pcm_hw_params_set_periods_minmax (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *min, int *mindir, unsigned int *max, int *maxdir)
 Restrict a configuration space to have periods counts in a given range.
int INTERNAL() snd_pcm_hw_params_set_periods_near (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space to have periods count nearest to a target.
int snd_pcm_hw_params_set_rate (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir)
 Restrict a configuration space to contain only one rate.
int INTERNAL() snd_pcm_hw_params_set_rate_first (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space to contain only its minimum rate.
int INTERNAL() snd_pcm_hw_params_set_rate_last (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space to contain only its maximum rate.
int snd_pcm_hw_params_set_rate_max (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space with a maximum rate.
int snd_pcm_hw_params_set_rate_min (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space with a minimum rate.
int snd_pcm_hw_params_set_rate_minmax (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *min, int *mindir, unsigned int *max, int *maxdir)
 Restrict a configuration space to have rates in a given range.
int INTERNAL() snd_pcm_hw_params_set_rate_near (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space to have rate nearest to a target.
int snd_pcm_hw_params_set_rate_resample (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val)
 Restrict a configuration space to contain only real hardware rates.
int snd_pcm_hw_params_set_subformat (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t subformat)
 Restrict a configuration space to contain only one subformat.
int INTERNAL() snd_pcm_hw_params_set_subformat_first (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t *subformat)
 Restrict a configuration space to contain only its first subformat.
int INTERNAL() snd_pcm_hw_params_set_subformat_last (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t *subformat)
 Restrict a configuration space to contain only its last subformat.
int snd_pcm_hw_params_set_subformat_mask (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_mask_t *mask)
 Restrict a configuration space to contain only a set of subformats.
int snd_pcm_hw_params_set_tick_time (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir)
 Restrict a configuration space to contain only one tick time.
int INTERNAL() snd_pcm_hw_params_set_tick_time_first (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space to contain only its minimum tick time.
int INTERNAL() snd_pcm_hw_params_set_tick_time_last (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space to contain only its maximum tick time.
int snd_pcm_hw_params_set_tick_time_max (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space with a maximum tick time.
int snd_pcm_hw_params_set_tick_time_min (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space with a minimum tick time.
int snd_pcm_hw_params_set_tick_time_minmax (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *min, int *mindir, unsigned int *max, int *maxdir)
 Restrict a configuration space to have tick times in a given range.
int INTERNAL() snd_pcm_hw_params_set_tick_time_near (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
 Restrict a configuration space to have tick time nearest to a target.
size_t snd_pcm_hw_params_sizeof ()
 get size of snd_pcm_hw_params_t
int snd_pcm_hw_params_test_access (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t access)
 Verify if an access type is available inside a configuration space for a PCM.
int snd_pcm_hw_params_test_buffer_size (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t val)
 Verify if a buffer size is available inside a configuration space for a PCM.
int snd_pcm_hw_params_test_buffer_time (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir)
 Verify if a buffer time is available inside a configuration space for a PCM.
int snd_pcm_hw_params_test_channels (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val)
 Verify if a channels count is available inside a configuration space for a PCM.
int snd_pcm_hw_params_test_format (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t format)
 Verify if a format is available inside a configuration space for a PCM.
int snd_pcm_hw_params_test_period_size (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t val, int dir)
 Verify if a period size is available inside a configuration space for a PCM.
int snd_pcm_hw_params_test_period_time (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir)
 Verify if a period time is available inside a configuration space for a PCM.
int snd_pcm_hw_params_test_periods (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir)
 Verify if a periods count is available inside a configuration space for a PCM.
int snd_pcm_hw_params_test_rate (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir)
 Verify if a rate is available inside a configuration space for a PCM.
int snd_pcm_hw_params_test_subformat (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t subformat)
 Verify if a subformat is available inside a configuration space for a PCM.
int snd_pcm_hw_params_test_tick_time (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir)
 Verify if a tick time is available inside a configuration space for a PCM.
int snd_pcm_hwsync (snd_pcm_t *pcm)
 Synchronize stream position with hardware.
int snd_pcm_info (snd_pcm_t *pcm, snd_pcm_info_t *info)
 Obtain general (static) information for PCM handle.
void snd_pcm_info_copy (snd_pcm_info_t *dst, const snd_pcm_info_t *src)
 copy one snd_pcm_info_t to another
void snd_pcm_info_free (snd_pcm_info_t *obj)
 frees a previously allocated snd_pcm_info_t
int snd_pcm_info_get_card (const snd_pcm_info_t *obj)
 Get card from a PCM info container.
snd_pcm_class_t snd_pcm_info_get_class (const snd_pcm_info_t *obj)
 Get class from a PCM info container.
unsigned int snd_pcm_info_get_device (const snd_pcm_info_t *obj)
 Get device from a PCM info container.
const char * snd_pcm_info_get_id (const snd_pcm_info_t *obj)
 Get id from a PCM info container.
const char * snd_pcm_info_get_name (const snd_pcm_info_t *obj)
 Get name from a PCM info container.
snd_pcm_stream_t snd_pcm_info_get_stream (const snd_pcm_info_t *obj)
 Get stream (direction) from a PCM info container.
snd_pcm_subclass_t snd_pcm_info_get_subclass (const snd_pcm_info_t *obj)
 Get subclass from a PCM info container.
unsigned int snd_pcm_info_get_subdevice (const snd_pcm_info_t *obj)
 Get subdevice from a PCM info container.
const char * snd_pcm_info_get_subdevice_name (const snd_pcm_info_t *obj)
 Get subdevice name from a PCM info container.
unsigned int snd_pcm_info_get_subdevices_avail (const snd_pcm_info_t *obj)
 Get available subdevices count from a PCM info container.
unsigned int snd_pcm_info_get_subdevices_count (const snd_pcm_info_t *obj)
 Get subdevices count from a PCM info container.
snd_pcm_sync_id_t snd_pcm_info_get_sync (const snd_pcm_info_t *obj)
 Get hardware synchronization ID from a PCM info container.
int snd_pcm_info_malloc (snd_pcm_info_t **ptr)
 allocate an invalid snd_pcm_info_t using standard malloc
void snd_pcm_info_set_device (snd_pcm_info_t *obj, unsigned int val)
 Set wanted device inside a PCM info container (see snd_ctl_pcm_info)
void snd_pcm_info_set_stream (snd_pcm_info_t *obj, snd_pcm_stream_t val)
 Set wanted stream inside a PCM info container (see snd_ctl_pcm_info)
void snd_pcm_info_set_subdevice (snd_pcm_info_t *obj, unsigned int val)
 Set wanted subdevice inside a PCM info container (see snd_ctl_pcm_info)
size_t snd_pcm_info_sizeof ()
 get size of snd_pcm_info_t
int snd_pcm_link (snd_pcm_t *pcm1, snd_pcm_t *pcm2)
 Link two PCMs.
void snd_pcm_link_appl_ptr (snd_pcm_t *pcm, snd_pcm_t *slave)
void snd_pcm_link_hw_ptr (snd_pcm_t *pcm, snd_pcm_t *slave)
static void snd_pcm_link_ptr (snd_pcm_t *pcm, snd_pcm_rbptr_t *pcm_rbptr, snd_pcm_t *slave, snd_pcm_rbptr_t *slave_rbptr)
int snd_pcm_mmap_begin (snd_pcm_t *pcm, const snd_pcm_channel_area_t **areas, snd_pcm_uframes_t *offset, snd_pcm_uframes_t *frames)
 Application request to access a portion of direct (mmap) area.
snd_pcm_sframes_t snd_pcm_mmap_commit (snd_pcm_t *pcm, snd_pcm_uframes_t offset, snd_pcm_uframes_t frames)
 Application has completed the access to area requested with snd_pcm_mmap_begin.
const char * snd_pcm_name (snd_pcm_t *pcm)
 get identifier of PCM handle
int snd_pcm_new (snd_pcm_t **pcmp, snd_pcm_type_t type, const char *name, snd_pcm_stream_t stream, int mode)
int snd_pcm_nonblock (snd_pcm_t *pcm, int nonblock)
 set nonblock mode
int snd_pcm_open (snd_pcm_t **pcmp, const char *name, snd_pcm_stream_t stream, int mode)
 Opens a PCM.
static int snd_pcm_open_conf (snd_pcm_t **pcmp, const char *name, snd_config_t *pcm_root, snd_config_t *pcm_conf, snd_pcm_stream_t stream, int mode)
int snd_pcm_open_lconf (snd_pcm_t **pcmp, const char *name, snd_pcm_stream_t stream, int mode, snd_config_t *lconf)
 Opens a PCM using local configuration.
static int snd_pcm_open_noupdate (snd_pcm_t **pcmp, snd_config_t *root, const char *name, snd_pcm_stream_t stream, int mode)
int snd_pcm_open_slave (snd_pcm_t **pcmp, snd_config_t *root, snd_config_t *conf, snd_pcm_stream_t stream, int mode)
int snd_pcm_pause (snd_pcm_t *pcm, int enable)
 Pause/resume PCM.
int snd_pcm_poll_descriptors (snd_pcm_t *pcm, struct pollfd *pfds, unsigned int space)
 get poll descriptors
int snd_pcm_poll_descriptors_count (snd_pcm_t *pcm)
 get count of poll descriptors for PCM handle
int snd_pcm_poll_descriptors_revents (snd_pcm_t *pcm, struct pollfd *pfds, unsigned int nfds, unsigned short *revents)
 get returned events from poll descriptors
int snd_pcm_prepare (snd_pcm_t *pcm)
 Prepare PCM for use.
snd_pcm_sframes_t snd_pcm_read_areas (snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, snd_pcm_uframes_t size, snd_pcm_xfer_areas_func_t func)
snd_pcm_sframes_t snd_pcm_readi (snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size)
 Read interleaved frames from a PCM.
snd_pcm_sframes_t snd_pcm_readn (snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size)
 Read non interleaved frames to a PCM.
int snd_pcm_reset (snd_pcm_t *pcm)
 Reset PCM position.
int snd_pcm_resume (snd_pcm_t *pcm)
 Resume from suspend, no samples are lost.
snd_pcm_sframes_t snd_pcm_rewind (snd_pcm_t *pcm, snd_pcm_uframes_t frames)
 Move application frame position backward.
ssize_t snd_pcm_samples_to_bytes (snd_pcm_t *pcm, long samples)
 Convert samples in bytes for a PCM.
void snd_pcm_set_appl_ptr (snd_pcm_t *pcm, volatile snd_pcm_uframes_t *appl_ptr, int fd, off_t offset)
void snd_pcm_set_hw_ptr (snd_pcm_t *pcm, volatile snd_pcm_uframes_t *hw_ptr, int fd, off_t offset)
static void snd_pcm_set_ptr (snd_pcm_t *pcm, snd_pcm_rbptr_t *rbptr, volatile snd_pcm_uframes_t *hw_ptr, int fd, off_t offset)
int snd_pcm_slave_conf (snd_config_t *root, snd_config_t *conf, snd_config_t **_pcm_conf, unsigned int count,...)
int snd_pcm_start (snd_pcm_t *pcm)
 Start a PCM.
const char * snd_pcm_start_mode_name (snd_pcm_start_t mode)
 (DEPRECATED) get name of PCM start mode setting
snd_pcm_state_t snd_pcm_state (snd_pcm_t *pcm)
 Return PCM state.
const char * snd_pcm_state_name (snd_pcm_state_t state)
 get name of PCM state
int snd_pcm_status (snd_pcm_t *pcm, snd_pcm_status_t *status)
 Obtain status (runtime) information for PCM handle.
void snd_pcm_status_copy (snd_pcm_status_t *dst, const snd_pcm_status_t *src)
 copy one snd_pcm_status_t to another
int snd_pcm_status_dump (snd_pcm_status_t *status, snd_output_t *out)
 Dump status.
void snd_pcm_status_free (snd_pcm_status_t *obj)
 frees a previously allocated snd_pcm_status_t
snd_pcm_uframes_t snd_pcm_status_get_avail (const snd_pcm_status_t *obj)
 Get number of frames available from a PCM status container (see snd_pcm_avail_update)
snd_pcm_uframes_t snd_pcm_status_get_avail_max (const snd_pcm_status_t *obj)
 Get maximum number of frames available from a PCM status container after last snd_pcm_status call.
snd_pcm_sframes_t snd_pcm_status_get_delay (const snd_pcm_status_t *obj)
 Get delay from a PCM status container (see snd_pcm_delay)
void INTERNAL() snd_pcm_status_get_htstamp (const snd_pcm_status_t *obj, snd_htimestamp_t *ptr)
 Get "now" hi-res timestamp from a PCM status container.
snd_pcm_uframes_t snd_pcm_status_get_overrange (const snd_pcm_status_t *obj)
 Get count of ADC overrange detections since last call.
snd_pcm_state_t snd_pcm_status_get_state (const snd_pcm_status_t *obj)
 Get state from a PCM status container (see snd_pcm_state)
void INTERNAL() snd_pcm_status_get_trigger_htstamp (const snd_pcm_status_t *obj, snd_htimestamp_t *ptr)
 Get trigger hi-res timestamp from a PCM status container.
void snd_pcm_status_get_trigger_tstamp (const snd_pcm_status_t *obj, snd_timestamp_t *ptr)
 Get trigger timestamp from a PCM status container.
void snd_pcm_status_get_tstamp (const snd_pcm_status_t *obj, snd_timestamp_t *ptr)
 Get "now" timestamp from a PCM status container.
int snd_pcm_status_malloc (snd_pcm_status_t **ptr)
 allocate an invalid snd_pcm_status_t using standard malloc
size_t snd_pcm_status_sizeof ()
 get size of snd_pcm_status_t
snd_pcm_stream_t snd_pcm_stream (snd_pcm_t *pcm)
 get stream for a PCM handle
const char * snd_pcm_stream_name (snd_pcm_stream_t stream)
 get name of PCM stream type
const char * snd_pcm_subformat_description (snd_pcm_subformat_t subformat)
 get description of PCM sample subformat
void snd_pcm_subformat_mask_any (snd_pcm_subformat_mask_t *mask)
 set all bits in a snd_pcm_subformat_mask_t
void snd_pcm_subformat_mask_copy (snd_pcm_subformat_mask_t *dst, const snd_pcm_subformat_mask_t *src)
 copy one snd_pcm_subformat_mask_t to another
int snd_pcm_subformat_mask_empty (const snd_pcm_subformat_mask_t *mask)
 test, if given a snd_pcm_subformat_mask_t is empty
void snd_pcm_subformat_mask_free (snd_pcm_subformat_mask_t *obj)
 frees a previously allocated snd_pcm_subformat_mask_t
int snd_pcm_subformat_mask_malloc (snd_pcm_subformat_mask_t **ptr)
 allocate an empty snd_pcm_subformat_mask_t using standard malloc
void snd_pcm_subformat_mask_none (snd_pcm_subformat_mask_t *mask)
 reset all bits in a snd_pcm_subformat_mask_t
void snd_pcm_subformat_mask_reset (snd_pcm_subformat_mask_t *mask, snd_pcm_subformat_t val)
 make a subformat missing from a snd_pcm_subformat_mask_t
void snd_pcm_subformat_mask_set (snd_pcm_subformat_mask_t *mask, snd_pcm_subformat_t val)
 make a subformat present in a snd_pcm_subformat_mask_t
size_t snd_pcm_subformat_mask_sizeof ()
 get size of snd_pcm_subformat_mask_t
int snd_pcm_subformat_mask_test (const snd_pcm_subformat_mask_t *mask, snd_pcm_subformat_t val)
 test the presence of a subformat in a snd_pcm_subformat_mask_t
const char * snd_pcm_subformat_name (snd_pcm_subformat_t subformat)
 get name of PCM sample subformat
int snd_pcm_sw_params (snd_pcm_t *pcm, snd_pcm_sw_params_t *params)
 Install PCM software configuration defined by params.
void snd_pcm_sw_params_copy (snd_pcm_sw_params_t *dst, const snd_pcm_sw_params_t *src)
 copy one snd_pcm_sw_params_t to another
int snd_pcm_sw_params_current (snd_pcm_t *pcm, snd_pcm_sw_params_t *params)
 Return current software configuration for a PCM.
int snd_pcm_sw_params_dump (snd_pcm_sw_params_t *params, snd_output_t *out)
 Dump a software configuration.
void snd_pcm_sw_params_free (snd_pcm_sw_params_t *obj)
 frees a previously allocated snd_pcm_sw_params_t
int INTERNAL() snd_pcm_sw_params_get_avail_min (const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val)
 Get avail min from a software configuration container.
int snd_pcm_sw_params_get_boundary (const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val)
 Get boundary for ring pointers from a software configuration container.
int INTERNAL() snd_pcm_sw_params_get_silence_size (const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val)
 Get silence size from a software configuration container.
int INTERNAL() snd_pcm_sw_params_get_silence_threshold (const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val)
 Get silence threshold from a software configuration container.
int INTERNAL() snd_pcm_sw_params_get_sleep_min (const snd_pcm_sw_params_t *params, unsigned int *val)
 Get minimum numbers of ticks to sleep from a software configuration container.
snd_pcm_start_t snd_pcm_sw_params_get_start_mode (const snd_pcm_sw_params_t *params)
 (DEPRECATED) Get start mode from a software configuration container
int INTERNAL() snd_pcm_sw_params_get_start_threshold (const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val)
 Get start threshold from a software configuration container.
int INTERNAL() snd_pcm_sw_params_get_stop_threshold (const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val)
 Get stop threshold from a software configuration container.
int INTERNAL() snd_pcm_sw_params_get_tstamp_mode (const snd_pcm_sw_params_t *params, snd_pcm_tstamp_t *val)
 Get timestamp mode from a software configuration container.
int INTERNAL() snd_pcm_sw_params_get_xfer_align (const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val)
 Get xfer align from a software configuration container.
snd_pcm_xrun_t snd_pcm_sw_params_get_xrun_mode (const snd_pcm_sw_params_t *params)
 (DEPRECATED) Get xrun mode from a software configuration container
int snd_pcm_sw_params_malloc (snd_pcm_sw_params_t **ptr)
 allocate an invalid snd_pcm_sw_params_t using standard malloc
int snd_pcm_sw_params_set_avail_min (snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)
 Set avail min inside a software configuration container.
int snd_pcm_sw_params_set_silence_size (snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)
 Set silence size inside a software configuration container.
int snd_pcm_sw_params_set_silence_threshold (snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)
 Set silence threshold inside a software configuration container.
int snd_pcm_sw_params_set_sleep_min (snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_sw_params_t *params, unsigned int val)
 Set minimum number of ticks to sleep inside a software configuration container.
int snd_pcm_sw_params_set_start_mode (snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_start_t val)
 (DEPRECATED) Set start mode inside a software configuration container
int snd_pcm_sw_params_set_start_threshold (snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)
 Set start threshold inside a software configuration container.
int snd_pcm_sw_params_set_stop_threshold (snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)
 Set stop threshold inside a software configuration container.
int snd_pcm_sw_params_set_tstamp_mode (snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_sw_params_t *params, snd_pcm_tstamp_t val)
 Set timestamp mode inside a software configuration container.
int snd_pcm_sw_params_set_xfer_align (snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)
 Set xfer align inside a software configuration container.
int snd_pcm_sw_params_set_xrun_mode (snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_sw_params_t *params, snd_pcm_xrun_t val)
 (DEPRECATED) Set xrun mode inside a software configuration container
size_t snd_pcm_sw_params_sizeof ()
 get size of snd_pcm_sw_params_t
const char * snd_pcm_tstamp_mode_name (snd_pcm_tstamp_t mode)
 get name of PCM tstamp mode setting
snd_pcm_type_t snd_pcm_type (snd_pcm_t *pcm)
 get type of PCM handle
const char *INTERNAL() snd_pcm_type_name (snd_pcm_type_t type)
 get name of PCM type
int snd_pcm_unlink (snd_pcm_t *pcm)
 Remove a PCM from a linked group.
void snd_pcm_unlink_appl_ptr (snd_pcm_t *pcm, snd_pcm_t *slave)
void snd_pcm_unlink_hw_ptr (snd_pcm_t *pcm, snd_pcm_t *slave)
static void snd_pcm_unlink_ptr (snd_pcm_t *pcm, snd_pcm_rbptr_t *pcm_rbptr, snd_pcm_t *slave, snd_pcm_rbptr_t *slave_rbptr)
int snd_pcm_wait (snd_pcm_t *pcm, int timeout)
 Wait for a PCM to become ready.
int snd_pcm_wait_nocheck (snd_pcm_t *pcm, int timeout)
snd_pcm_sframes_t snd_pcm_write_areas (snd_pcm_t *pcm, const snd_pcm_channel_area_t *areas, snd_pcm_uframes_t offset, snd_pcm_uframes_t size, snd_pcm_xfer_areas_func_t func)
snd_pcm_sframes_t snd_pcm_writei (snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size)
 Write interleaved frames to a PCM.
snd_pcm_sframes_t snd_pcm_writen (snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size)
 Write non interleaved frames to a PCM.
const char * snd_pcm_xrun_mode_name (snd_pcm_xrun_t mode)
 (DEPRECATED) get name of PCM xrun mode setting
 use_default_symbol_version (__snd_pcm_status_get_htstamp, snd_pcm_status_get_htstamp, ALSA_0.9.0rc8)
 use_default_symbol_version (__snd_pcm_status_get_trigger_htstamp, snd_pcm_status_get_trigger_htstamp, ALSA_0.9.0rc8)
 use_default_symbol_version (__snd_pcm_type_name, snd_pcm_type_name, ALSA_0.9.0)
 use_default_symbol_version (__snd_pcm_forward, snd_pcm_forward, ALSA_0.9.0rc8)

Variables

static char * build_in_pcms []
static const char * names [SND_PCM_HW_PARAM_LAST_INTERVAL+1]
static const char * snd_pcm_access_names []
static const char * snd_pcm_format_aliases [SND_PCM_FORMAT_LAST+1]
static const char * snd_pcm_format_descriptions []
static const char * snd_pcm_format_names []
static const char * snd_pcm_start_mode_names []
static const char * snd_pcm_state_names []
static const char * snd_pcm_stream_names []
static const char * snd_pcm_subformat_descriptions []
static const char * snd_pcm_subformat_names []
static const char * snd_pcm_tstamp_mode_names []
static const char * snd_pcm_type_names []
static const char * snd_pcm_xrun_mode_names []

Detailed Description

PCM Interface.

Author:
Jaroslav Kysela <perex@suse.cz>
Abramo Bagnara <abramo@alsa-project.org>
Date:
2000-2001

PCM Interface is designed to write or read digital audio frames. A frame is the data unit converted into/from sound in one time unit (1/rate seconds), by example if you set your playback PCM rate to 44100 you'll hear 44100 frames per second. The size in bytes of a frame may be obtained from bits needed to store a sample and channels count.

See the PCM (digital audio) interface page for more details.

Definition in file pcm.c.


Generated by  Doxygen 1.6.0   Back to index