Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

pcm.h

Go to the documentation of this file.
00001 
00012 /*
00013  *   This library is free software; you can redistribute it and/or modify
00014  *   it under the terms of the GNU Lesser General Public License as
00015  *   published by the Free Software Foundation; either version 2.1 of
00016  *   the License, or (at your option) any later version.
00017  *
00018  *   This program is distributed in the hope that it will be useful,
00019  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021  *   GNU Lesser General Public License for more details.
00022  *
00023  *   You should have received a copy of the GNU Lesser General Public
00024  *   License along with this library; if not, write to the Free Software
00025  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00026  *
00027  */
00028 
00029 #ifndef __ALSA_PCM_H
00030 #define __ALSA_PCM_H
00031 
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035 
00043 #define SND_PCM_DLSYM_VERSION           _dlsym_pcm_001
00044 
00046 typedef struct _snd_pcm_info snd_pcm_info_t;
00048 typedef struct _snd_pcm_hw_params snd_pcm_hw_params_t;
00050 typedef struct _snd_pcm_sw_params snd_pcm_sw_params_t;
00052  typedef struct _snd_pcm_status snd_pcm_status_t;
00054 typedef struct _snd_pcm_access_mask snd_pcm_access_mask_t;
00056 typedef struct _snd_pcm_format_mask snd_pcm_format_mask_t;
00058 typedef struct _snd_pcm_subformat_mask snd_pcm_subformat_mask_t;
00059 
00061 typedef enum _snd_pcm_class {
00064         SND_PCM_CLASS_GENERIC = 0,
00066         SND_PCM_CLASS_MULTI,
00068         SND_PCM_CLASS_MODEM,
00070         SND_PCM_CLASS_DIGITIZER,
00071         SND_PCM_CLASS_LAST = SND_PCM_CLASS_DIGITIZER
00072 } snd_pcm_class_t;
00073 
00075 typedef enum _snd_pcm_subclass {
00077         SND_PCM_SUBCLASS_GENERIC_MIX = 0,
00079         SND_PCM_SUBCLASS_MULTI_MIX,
00080         SND_PCM_SUBCLASS_LAST = SND_PCM_SUBCLASS_MULTI_MIX
00081 } snd_pcm_subclass_t;
00082 
00084 typedef enum _snd_pcm_stream {
00086         SND_PCM_STREAM_PLAYBACK = 0,
00088         SND_PCM_STREAM_CAPTURE,
00089         SND_PCM_STREAM_LAST = SND_PCM_STREAM_CAPTURE
00090 } snd_pcm_stream_t;
00091 
00093 typedef enum _snd_pcm_access {
00095         SND_PCM_ACCESS_MMAP_INTERLEAVED = 0,
00097         SND_PCM_ACCESS_MMAP_NONINTERLEAVED,
00099         SND_PCM_ACCESS_MMAP_COMPLEX,
00101         SND_PCM_ACCESS_RW_INTERLEAVED,
00103         SND_PCM_ACCESS_RW_NONINTERLEAVED,
00104         SND_PCM_ACCESS_LAST = SND_PCM_ACCESS_RW_NONINTERLEAVED
00105 } snd_pcm_access_t;
00106 
00108 typedef enum _snd_pcm_format {
00110         SND_PCM_FORMAT_UNKNOWN = -1,
00112         SND_PCM_FORMAT_S8 = 0,
00114         SND_PCM_FORMAT_U8,
00116         SND_PCM_FORMAT_S16_LE,
00118         SND_PCM_FORMAT_S16_BE,
00120         SND_PCM_FORMAT_U16_LE,
00122         SND_PCM_FORMAT_U16_BE,
00124         SND_PCM_FORMAT_S24_LE,
00126         SND_PCM_FORMAT_S24_BE,
00128         SND_PCM_FORMAT_U24_LE,
00130         SND_PCM_FORMAT_U24_BE,
00132         SND_PCM_FORMAT_S32_LE,
00134         SND_PCM_FORMAT_S32_BE,
00136         SND_PCM_FORMAT_U32_LE,
00138         SND_PCM_FORMAT_U32_BE,
00140         SND_PCM_FORMAT_FLOAT_LE,
00142         SND_PCM_FORMAT_FLOAT_BE,
00144         SND_PCM_FORMAT_FLOAT64_LE,
00146         SND_PCM_FORMAT_FLOAT64_BE,
00148         SND_PCM_FORMAT_IEC958_SUBFRAME_LE,
00150         SND_PCM_FORMAT_IEC958_SUBFRAME_BE,
00152         SND_PCM_FORMAT_MU_LAW,
00154         SND_PCM_FORMAT_A_LAW,
00156         SND_PCM_FORMAT_IMA_ADPCM,
00158         SND_PCM_FORMAT_MPEG,
00160         SND_PCM_FORMAT_GSM,
00162         SND_PCM_FORMAT_SPECIAL = 31,
00164         SND_PCM_FORMAT_S24_3LE = 32,
00166         SND_PCM_FORMAT_S24_3BE,
00168         SND_PCM_FORMAT_U24_3LE,
00170         SND_PCM_FORMAT_U24_3BE,
00172         SND_PCM_FORMAT_S20_3LE,
00174         SND_PCM_FORMAT_S20_3BE,
00176         SND_PCM_FORMAT_U20_3LE,
00178         SND_PCM_FORMAT_U20_3BE,
00180         SND_PCM_FORMAT_S18_3LE,
00182         SND_PCM_FORMAT_S18_3BE,
00184         SND_PCM_FORMAT_U18_3LE,
00186         SND_PCM_FORMAT_U18_3BE,
00187         SND_PCM_FORMAT_LAST = SND_PCM_FORMAT_U18_3BE,
00188 
00189 #if __BYTE_ORDER == __LITTLE_ENDIAN
00190 
00191         SND_PCM_FORMAT_S16 = SND_PCM_FORMAT_S16_LE,
00193         SND_PCM_FORMAT_U16 = SND_PCM_FORMAT_U16_LE,
00195         SND_PCM_FORMAT_S24 = SND_PCM_FORMAT_S24_LE,
00197         SND_PCM_FORMAT_U24 = SND_PCM_FORMAT_U24_LE,
00199         SND_PCM_FORMAT_S32 = SND_PCM_FORMAT_S32_LE,
00201         SND_PCM_FORMAT_U32 = SND_PCM_FORMAT_U32_LE,
00203         SND_PCM_FORMAT_FLOAT = SND_PCM_FORMAT_FLOAT_LE,
00205         SND_PCM_FORMAT_FLOAT64 = SND_PCM_FORMAT_FLOAT64_LE,
00207         SND_PCM_FORMAT_IEC958_SUBFRAME = SND_PCM_FORMAT_IEC958_SUBFRAME_LE
00208 #elif __BYTE_ORDER == __BIG_ENDIAN
00209 
00210         SND_PCM_FORMAT_S16 = SND_PCM_FORMAT_S16_BE,
00212         SND_PCM_FORMAT_U16 = SND_PCM_FORMAT_U16_BE,
00214         SND_PCM_FORMAT_S24 = SND_PCM_FORMAT_S24_BE,
00216         SND_PCM_FORMAT_U24 = SND_PCM_FORMAT_U24_BE,
00218         SND_PCM_FORMAT_S32 = SND_PCM_FORMAT_S32_BE,
00220         SND_PCM_FORMAT_U32 = SND_PCM_FORMAT_U32_BE,
00222         SND_PCM_FORMAT_FLOAT = SND_PCM_FORMAT_FLOAT_BE,
00224         SND_PCM_FORMAT_FLOAT64 = SND_PCM_FORMAT_FLOAT64_BE,
00226         SND_PCM_FORMAT_IEC958_SUBFRAME = SND_PCM_FORMAT_IEC958_SUBFRAME_BE
00227 #else
00228 #error "Unknown endian"
00229 #endif
00230 } snd_pcm_format_t;
00231 
00233 typedef enum _snd_pcm_subformat {
00235         SND_PCM_SUBFORMAT_STD = 0,
00236         SND_PCM_SUBFORMAT_LAST = SND_PCM_SUBFORMAT_STD
00237 } snd_pcm_subformat_t;
00238 
00240 typedef enum _snd_pcm_state {
00242         SND_PCM_STATE_OPEN = 0,
00244         SND_PCM_STATE_SETUP,
00246         SND_PCM_STATE_PREPARED,
00248         SND_PCM_STATE_RUNNING,
00250         SND_PCM_STATE_XRUN,
00252         SND_PCM_STATE_DRAINING,
00254         SND_PCM_STATE_PAUSED,
00256         SND_PCM_STATE_SUSPENDED,
00258         SND_PCM_STATE_DISCONNECTED,
00259         SND_PCM_STATE_LAST = SND_PCM_STATE_DISCONNECTED
00260 } snd_pcm_state_t;
00261 
00263 typedef enum _snd_pcm_start {
00265         SND_PCM_START_DATA = 0,
00267         SND_PCM_START_EXPLICIT,
00268         SND_PCM_START_LAST = SND_PCM_START_EXPLICIT
00269 } snd_pcm_start_t;
00270 
00272 typedef enum _snd_pcm_xrun {
00274         SND_PCM_XRUN_NONE = 0,
00276         SND_PCM_XRUN_STOP,
00277         SND_PCM_XRUN_LAST = SND_PCM_XRUN_STOP
00278 } snd_pcm_xrun_t;
00279 
00281 typedef enum _snd_pcm_tstamp {
00283         SND_PCM_TSTAMP_NONE = 0,
00285         SND_PCM_TSTAMP_MMAP,
00286         SND_PCM_TSTAMP_LAST = SND_PCM_TSTAMP_MMAP
00287 } snd_pcm_tstamp_t;
00288 
00290 typedef unsigned long snd_pcm_uframes_t;
00292 typedef long snd_pcm_sframes_t;
00293 
00295 #define SND_PCM_NONBLOCK                0x0001
00296 
00297 #define SND_PCM_ASYNC                   0x0002
00298 
00300 typedef struct _snd_pcm snd_pcm_t;
00301 
00303 enum _snd_pcm_type {
00305         SND_PCM_TYPE_HW = 0,
00307         SND_PCM_TYPE_HOOKS,
00310         SND_PCM_TYPE_MULTI,
00312         SND_PCM_TYPE_FILE,
00314         SND_PCM_TYPE_NULL,
00316         SND_PCM_TYPE_SHM,
00318         SND_PCM_TYPE_INET,
00320         SND_PCM_TYPE_COPY,
00322         SND_PCM_TYPE_LINEAR,
00324         SND_PCM_TYPE_ALAW,
00326         SND_PCM_TYPE_MULAW,
00328         SND_PCM_TYPE_ADPCM,
00330         SND_PCM_TYPE_RATE,
00332         SND_PCM_TYPE_ROUTE,
00334         SND_PCM_TYPE_PLUG,
00336         SND_PCM_TYPE_SHARE,
00338         SND_PCM_TYPE_METER,
00340         SND_PCM_TYPE_MIX,
00342         SND_PCM_TYPE_DROUTE,
00344         SND_PCM_TYPE_LBSERVER,
00346         SND_PCM_TYPE_LINEAR_FLOAT,
00348         SND_PCM_TYPE_LADSPA,
00350         SND_PCM_TYPE_DMIX,
00352         SND_PCM_TYPE_JACK,
00354         SND_PCM_TYPE_DSNOOP,
00356         SND_PCM_TYPE_DSHARE,
00358         SND_PCM_TYPE_IEC958,
00360         SND_PCM_TYPE_SOFTVOL,
00362         SND_PCM_TYPE_IOPLUG,
00364         SND_PCM_TYPE_EXTPLUG,
00365         SND_PCM_TYPE_LAST = SND_PCM_TYPE_EXTPLUG
00366 };
00367 
00369 typedef enum _snd_pcm_type snd_pcm_type_t;
00370 
00372 typedef struct _snd_pcm_channel_area {
00374         void *addr;
00376         unsigned int first;
00378         unsigned int step;
00379 } snd_pcm_channel_area_t;
00380 
00382 typedef union _snd_pcm_sync_id {
00384         unsigned char id[16];
00386         unsigned short id16[8];
00388         unsigned int id32[4];
00389 } snd_pcm_sync_id_t;
00390 
00392 typedef struct _snd_pcm_scope snd_pcm_scope_t;
00393 
00394 int snd_pcm_open(snd_pcm_t **pcm, const char *name, 
00395                  snd_pcm_stream_t stream, int mode);
00396 int snd_pcm_open_lconf(snd_pcm_t **pcm, const char *name, 
00397                        snd_pcm_stream_t stream, int mode,
00398                        snd_config_t *lconf);
00399 
00400 int snd_pcm_close(snd_pcm_t *pcm);
00401 const char *snd_pcm_name(snd_pcm_t *pcm);
00402 snd_pcm_type_t snd_pcm_type(snd_pcm_t *pcm);
00403 snd_pcm_stream_t snd_pcm_stream(snd_pcm_t *pcm);
00404 int snd_pcm_poll_descriptors_count(snd_pcm_t *pcm);
00405 int snd_pcm_poll_descriptors(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int space);
00406 int snd_pcm_poll_descriptors_revents(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
00407 int snd_pcm_nonblock(snd_pcm_t *pcm, int nonblock);
00408 int snd_async_add_pcm_handler(snd_async_handler_t **handler, snd_pcm_t *pcm, 
00409                               snd_async_callback_t callback, void *private_data);
00410 snd_pcm_t *snd_async_handler_get_pcm(snd_async_handler_t *handler);
00411 int snd_pcm_info(snd_pcm_t *pcm, snd_pcm_info_t *info);
00412 int snd_pcm_hw_params_current(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
00413 int snd_pcm_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
00414 int snd_pcm_hw_free(snd_pcm_t *pcm);
00415 int snd_pcm_sw_params_current(snd_pcm_t *pcm, snd_pcm_sw_params_t *params);
00416 int snd_pcm_sw_params(snd_pcm_t *pcm, snd_pcm_sw_params_t *params);
00417 int snd_pcm_prepare(snd_pcm_t *pcm);
00418 int snd_pcm_reset(snd_pcm_t *pcm);
00419 int snd_pcm_status(snd_pcm_t *pcm, snd_pcm_status_t *status);
00420 int snd_pcm_start(snd_pcm_t *pcm);
00421 int snd_pcm_drop(snd_pcm_t *pcm);
00422 int snd_pcm_drain(snd_pcm_t *pcm);
00423 int snd_pcm_pause(snd_pcm_t *pcm, int enable);
00424 snd_pcm_state_t snd_pcm_state(snd_pcm_t *pcm);
00425 int snd_pcm_hwsync(snd_pcm_t *pcm);
00426 int snd_pcm_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp);
00427 int snd_pcm_resume(snd_pcm_t *pcm);
00428 snd_pcm_sframes_t snd_pcm_avail_update(snd_pcm_t *pcm);
00429 snd_pcm_sframes_t snd_pcm_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames);
00430 snd_pcm_sframes_t snd_pcm_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames);
00431 snd_pcm_sframes_t snd_pcm_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size);
00432 snd_pcm_sframes_t snd_pcm_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size);
00433 snd_pcm_sframes_t snd_pcm_writen(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size);
00434 snd_pcm_sframes_t snd_pcm_readn(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size);
00435 int snd_pcm_wait(snd_pcm_t *pcm, int timeout);
00436 
00437 int snd_pcm_link(snd_pcm_t *pcm1, snd_pcm_t *pcm2);
00438 int snd_pcm_unlink(snd_pcm_t *pcm);
00439 
00449 size_t snd_pcm_info_sizeof(void);
00454 #define snd_pcm_info_alloca(ptr) do { assert(ptr); *ptr = (snd_pcm_info_t *) alloca(snd_pcm_info_sizeof()); memset(*ptr, 0, snd_pcm_info_sizeof()); } while (0)
00455 int snd_pcm_info_malloc(snd_pcm_info_t **ptr);
00456 void snd_pcm_info_free(snd_pcm_info_t *obj);
00457 void snd_pcm_info_copy(snd_pcm_info_t *dst, const snd_pcm_info_t *src);
00458 unsigned int snd_pcm_info_get_device(const snd_pcm_info_t *obj);
00459 unsigned int snd_pcm_info_get_subdevice(const snd_pcm_info_t *obj);
00460 snd_pcm_stream_t snd_pcm_info_get_stream(const snd_pcm_info_t *obj);
00461 int snd_pcm_info_get_card(const snd_pcm_info_t *obj);
00462 const char *snd_pcm_info_get_id(const snd_pcm_info_t *obj);
00463 const char *snd_pcm_info_get_name(const snd_pcm_info_t *obj);
00464 const char *snd_pcm_info_get_subdevice_name(const snd_pcm_info_t *obj);
00465 snd_pcm_class_t snd_pcm_info_get_class(const snd_pcm_info_t *obj);
00466 snd_pcm_subclass_t snd_pcm_info_get_subclass(const snd_pcm_info_t *obj);
00467 unsigned int snd_pcm_info_get_subdevices_count(const snd_pcm_info_t *obj);
00468 unsigned int snd_pcm_info_get_subdevices_avail(const snd_pcm_info_t *obj);
00469 snd_pcm_sync_id_t snd_pcm_info_get_sync(const snd_pcm_info_t *obj);
00470 void snd_pcm_info_set_device(snd_pcm_info_t *obj, unsigned int val);
00471 void snd_pcm_info_set_subdevice(snd_pcm_info_t *obj, unsigned int val);
00472 void snd_pcm_info_set_stream(snd_pcm_info_t *obj, snd_pcm_stream_t val);
00473 
00483 int snd_pcm_hw_params_any(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
00484 
00485 int snd_pcm_hw_params_can_mmap_sample_resolution(const snd_pcm_hw_params_t *params);
00486 int snd_pcm_hw_params_is_double(const snd_pcm_hw_params_t *params);
00487 int snd_pcm_hw_params_is_batch(const snd_pcm_hw_params_t *params);
00488 int snd_pcm_hw_params_is_block_transfer(const snd_pcm_hw_params_t *params);
00489 int snd_pcm_hw_params_can_overrange(const snd_pcm_hw_params_t *params);
00490 int snd_pcm_hw_params_can_pause(const snd_pcm_hw_params_t *params);
00491 int snd_pcm_hw_params_can_resume(const snd_pcm_hw_params_t *params);
00492 int snd_pcm_hw_params_is_half_duplex(const snd_pcm_hw_params_t *params);
00493 int snd_pcm_hw_params_is_joint_duplex(const snd_pcm_hw_params_t *params);
00494 int snd_pcm_hw_params_can_sync_start(const snd_pcm_hw_params_t *params);
00495 int snd_pcm_hw_params_get_rate_numden(const snd_pcm_hw_params_t *params,
00496                                       unsigned int *rate_num,
00497                                       unsigned int *rate_den);
00498 int snd_pcm_hw_params_get_sbits(const snd_pcm_hw_params_t *params);
00499 int snd_pcm_hw_params_get_fifo_size(const snd_pcm_hw_params_t *params);
00500 
00501 #if 0
00502 typedef struct _snd_pcm_hw_strategy snd_pcm_hw_strategy_t;
00503 
00504 /* choices need to be sorted on ascending badness */
00505 typedef struct _snd_pcm_hw_strategy_simple_choices_list {
00506         unsigned int value;
00507         unsigned int badness;
00508 } snd_pcm_hw_strategy_simple_choices_list_t;
00509 
00510 int snd_pcm_hw_params_strategy(snd_pcm_t *pcm, snd_pcm_hw_params_t *params,
00511                                const snd_pcm_hw_strategy_t *strategy,
00512                                unsigned int badness_min,
00513                                unsigned int badness_max);
00514 
00515 void snd_pcm_hw_strategy_free(snd_pcm_hw_strategy_t *strategy);
00516 int snd_pcm_hw_strategy_simple(snd_pcm_hw_strategy_t **strategyp,
00517                                unsigned int badness_min,
00518                                unsigned int badness_max);
00519 int snd_pcm_hw_params_try_explain_failure(snd_pcm_t *pcm,
00520                                           snd_pcm_hw_params_t *fail,
00521                                           snd_pcm_hw_params_t *success,
00522                                           unsigned int depth,
00523                                           snd_output_t *out);
00524 
00525 #endif
00526 
00527 size_t snd_pcm_hw_params_sizeof(void);
00532 #define snd_pcm_hw_params_alloca(ptr) do { assert(ptr); *ptr = (snd_pcm_hw_params_t *) alloca(snd_pcm_hw_params_sizeof()); memset(*ptr, 0, snd_pcm_hw_params_sizeof()); } while (0)
00533 int snd_pcm_hw_params_malloc(snd_pcm_hw_params_t **ptr);
00534 void snd_pcm_hw_params_free(snd_pcm_hw_params_t *obj);
00535 void snd_pcm_hw_params_copy(snd_pcm_hw_params_t *dst, const snd_pcm_hw_params_t *src);
00536 
00537 #ifndef ALSA_LIBRARY_BUILD
00538 
00539 #ifndef ALSA_PCM_OLD_HW_PARAMS_API
00540 
00541 int snd_pcm_hw_params_get_access(const snd_pcm_hw_params_t *params, snd_pcm_access_t *_access);
00542 int snd_pcm_hw_params_test_access(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t _access);
00543 int snd_pcm_hw_params_set_access(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t _access);
00544 int snd_pcm_hw_params_set_access_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t *_access);
00545 int snd_pcm_hw_params_set_access_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t *_access);
00546 int snd_pcm_hw_params_set_access_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_mask_t *mask);
00547 int snd_pcm_hw_params_get_access_mask(snd_pcm_hw_params_t *params, snd_pcm_access_mask_t *mask);
00548 
00549 int snd_pcm_hw_params_get_format(const snd_pcm_hw_params_t *params, snd_pcm_format_t *val);
00550 int snd_pcm_hw_params_test_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val);
00551 int snd_pcm_hw_params_set_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val);
00552 int snd_pcm_hw_params_set_format_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t *format);
00553 int snd_pcm_hw_params_set_format_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t *format);
00554 int snd_pcm_hw_params_set_format_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_mask_t *mask);
00555 void snd_pcm_hw_params_get_format_mask(snd_pcm_hw_params_t *params, snd_pcm_format_mask_t *mask);
00556 
00557 int snd_pcm_hw_params_get_subformat(const snd_pcm_hw_params_t *params, snd_pcm_subformat_t *subformat);
00558 int snd_pcm_hw_params_test_subformat(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t subformat);
00559 int snd_pcm_hw_params_set_subformat(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t subformat);
00560 int snd_pcm_hw_params_set_subformat_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t *subformat);
00561 int snd_pcm_hw_params_set_subformat_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t *subformat);
00562 int snd_pcm_hw_params_set_subformat_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_mask_t *mask);
00563 void snd_pcm_hw_params_get_subformat_mask(snd_pcm_hw_params_t *params, snd_pcm_subformat_mask_t *mask);
00564 
00565 int snd_pcm_hw_params_get_channels(const snd_pcm_hw_params_t *params, unsigned int *val);
00566 int snd_pcm_hw_params_get_channels_min(const snd_pcm_hw_params_t *params, unsigned int *val);
00567 int snd_pcm_hw_params_get_channels_max(const snd_pcm_hw_params_t *params, unsigned int *val);
00568 int snd_pcm_hw_params_test_channels(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val);
00569 int snd_pcm_hw_params_set_channels(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val);
00570 int snd_pcm_hw_params_set_channels_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val);
00571 int snd_pcm_hw_params_set_channels_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val);
00572 int snd_pcm_hw_params_set_channels_minmax(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *min, unsigned int *max);
00573 int snd_pcm_hw_params_set_channels_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val);
00574 int snd_pcm_hw_params_set_channels_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val);
00575 int snd_pcm_hw_params_set_channels_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val);
00576 
00577 int snd_pcm_hw_params_get_rate(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00578 int snd_pcm_hw_params_get_rate_min(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00579 int snd_pcm_hw_params_get_rate_max(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00580 int snd_pcm_hw_params_test_rate(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00581 int snd_pcm_hw_params_set_rate(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00582 int snd_pcm_hw_params_set_rate_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00583 int snd_pcm_hw_params_set_rate_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00584 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);
00585 int snd_pcm_hw_params_set_rate_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00586 int snd_pcm_hw_params_set_rate_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00587 int snd_pcm_hw_params_set_rate_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00588 
00589 int snd_pcm_hw_params_get_period_time(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00590 int snd_pcm_hw_params_get_period_time_min(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00591 int snd_pcm_hw_params_get_period_time_max(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00592 int snd_pcm_hw_params_test_period_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00593 int snd_pcm_hw_params_set_period_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00594 int snd_pcm_hw_params_set_period_time_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00595 int snd_pcm_hw_params_set_period_time_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00596 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);
00597 int snd_pcm_hw_params_set_period_time_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00598 int snd_pcm_hw_params_set_period_time_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00599 int snd_pcm_hw_params_set_period_time_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00600 
00601 int snd_pcm_hw_params_get_period_size(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *frames, int *dir);
00602 int snd_pcm_hw_params_get_period_size_min(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *frames, int *dir);
00603 int snd_pcm_hw_params_get_period_size_max(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *frames, int *dir);
00604 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);
00605 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);
00606 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);
00607 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);
00608 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);
00609 int 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);
00610 int 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);
00611 int 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);
00612 int snd_pcm_hw_params_set_period_size_integer(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
00613 
00614 int snd_pcm_hw_params_get_periods(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00615 int snd_pcm_hw_params_get_periods_min(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00616 int snd_pcm_hw_params_get_periods_max(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00617 int snd_pcm_hw_params_test_periods(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00618 int snd_pcm_hw_params_set_periods(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00619 int snd_pcm_hw_params_set_periods_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00620 int snd_pcm_hw_params_set_periods_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00621 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);
00622 int snd_pcm_hw_params_set_periods_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00623 int snd_pcm_hw_params_set_periods_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00624 int snd_pcm_hw_params_set_periods_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00625 int snd_pcm_hw_params_set_periods_integer(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
00626 
00627 int snd_pcm_hw_params_get_buffer_time(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00628 int snd_pcm_hw_params_get_buffer_time_min(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00629 int snd_pcm_hw_params_get_buffer_time_max(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00630 int snd_pcm_hw_params_test_buffer_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00631 int snd_pcm_hw_params_set_buffer_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00632 int snd_pcm_hw_params_set_buffer_time_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00633 int snd_pcm_hw_params_set_buffer_time_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00634 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);
00635 int snd_pcm_hw_params_set_buffer_time_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00636 int snd_pcm_hw_params_set_buffer_time_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00637 int snd_pcm_hw_params_set_buffer_time_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00638 
00639 int snd_pcm_hw_params_get_buffer_size(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
00640 int snd_pcm_hw_params_get_buffer_size_min(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
00641 int snd_pcm_hw_params_get_buffer_size_max(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
00642 int snd_pcm_hw_params_test_buffer_size(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t val);
00643 int snd_pcm_hw_params_set_buffer_size(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t val);
00644 int snd_pcm_hw_params_set_buffer_size_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
00645 int snd_pcm_hw_params_set_buffer_size_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
00646 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);
00647 int snd_pcm_hw_params_set_buffer_size_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
00648 int snd_pcm_hw_params_set_buffer_size_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
00649 int snd_pcm_hw_params_set_buffer_size_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
00650 
00651 int snd_pcm_hw_params_get_tick_time(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00652 int snd_pcm_hw_params_get_tick_time_min(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00653 int snd_pcm_hw_params_get_tick_time_max(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00654 int snd_pcm_hw_params_test_tick_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00655 int snd_pcm_hw_params_set_tick_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00656 int snd_pcm_hw_params_set_tick_time_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00657 int snd_pcm_hw_params_set_tick_time_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00658 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);
00659 int snd_pcm_hw_params_set_tick_time_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00660 int snd_pcm_hw_params_set_tick_time_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00661 int snd_pcm_hw_params_set_tick_time_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00662 
00663 #else
00664 
00665 asm(".symver snd_pcm_hw_params_get_access,snd_pcm_hw_params_get_access@ALSA_0.9");
00666 asm(".symver snd_pcm_hw_params_set_access_first,snd_pcm_hw_params_set_access_first@ALSA_0.9");
00667 asm(".symver snd_pcm_hw_params_set_access_last,snd_pcm_hw_params_set_access_last@ALSA_0.9");
00668 
00669 int snd_pcm_hw_params_get_access(const snd_pcm_hw_params_t *params);
00670 int snd_pcm_hw_params_test_access(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t val);
00671 int snd_pcm_hw_params_set_access(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t val);
00672 snd_pcm_access_t snd_pcm_hw_params_set_access_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
00673 snd_pcm_access_t snd_pcm_hw_params_set_access_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
00674 int snd_pcm_hw_params_set_access_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_mask_t *mask);
00675 void snd_pcm_hw_params_get_access_mask(snd_pcm_hw_params_t *params, snd_pcm_access_mask_t *mask);
00676 
00677 asm(".symver snd_pcm_hw_params_get_format,snd_pcm_hw_params_get_format@ALSA_0.9");
00678 asm(".symver snd_pcm_hw_params_set_format_first,snd_pcm_hw_params_set_format_first@ALSA_0.9");
00679 asm(".symver snd_pcm_hw_params_set_format_last,snd_pcm_hw_params_set_format_last@ALSA_0.9");
00680 
00681 int snd_pcm_hw_params_get_format(const snd_pcm_hw_params_t *params);
00682 int snd_pcm_hw_params_test_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val);
00683 int snd_pcm_hw_params_set_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val);
00684 snd_pcm_format_t snd_pcm_hw_params_set_format_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
00685 snd_pcm_format_t snd_pcm_hw_params_set_format_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
00686 int snd_pcm_hw_params_set_format_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_mask_t *mask);
00687 void snd_pcm_hw_params_get_format_mask(snd_pcm_hw_params_t *params, snd_pcm_format_mask_t *mask);
00688 
00689 asm(".symver snd_pcm_hw_params_get_subformat,snd_pcm_hw_params_get_subformat@ALSA_0.9");
00690 asm(".symver snd_pcm_hw_params_set_subformat_first,snd_pcm_hw_params_set_subformat_first@ALSA_0.9");
00691 asm(".symver snd_pcm_hw_params_set_subformat_last,snd_pcm_hw_params_set_subformat_last@ALSA_0.9");
00692 
00693 int snd_pcm_hw_params_test_subformat(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t val);
00694 int snd_pcm_hw_params_get_subformat(const snd_pcm_hw_params_t *params);
00695 int snd_pcm_hw_params_set_subformat(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t val);
00696 snd_pcm_subformat_t snd_pcm_hw_params_set_subformat_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
00697 snd_pcm_subformat_t snd_pcm_hw_params_set_subformat_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
00698 int snd_pcm_hw_params_set_subformat_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_mask_t *mask);
00699 void snd_pcm_hw_params_get_subformat_mask(snd_pcm_hw_params_t *params, snd_pcm_subformat_mask_t *mask);
00700 
00701 asm(".symver snd_pcm_hw_params_get_channels,snd_pcm_hw_params_get_channels@ALSA_0.9");
00702 asm(".symver snd_pcm_hw_params_get_channels_min,snd_pcm_hw_params_get_channels_min@ALSA_0.9");
00703 asm(".symver snd_pcm_hw_params_get_channels_max,snd_pcm_hw_params_get_channels_max@ALSA_0.9");
00704 asm(".symver snd_pcm_hw_params_set_channels_near,snd_pcm_hw_params_set_channels_near@ALSA_0.9");
00705 asm(".symver snd_pcm_hw_params_set_channels_first,snd_pcm_hw_params_set_channels_first@ALSA_0.9");
00706 asm(".symver snd_pcm_hw_params_set_channels_last,snd_pcm_hw_params_set_channels_last@ALSA_0.9");
00707 
00708 int snd_pcm_hw_params_get_channels(const snd_pcm_hw_params_t *params);
00709 unsigned int snd_pcm_hw_params_get_channels_min(const snd_pcm_hw_params_t *params);
00710 unsigned int snd_pcm_hw_params_get_channels_max(const snd_pcm_hw_params_t *params);
00711 int snd_pcm_hw_params_test_channels(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val);
00712 int snd_pcm_hw_params_set_channels(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val);
00713 int snd_pcm_hw_params_set_channels_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val);
00714 int snd_pcm_hw_params_set_channels_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val);
00715 int snd_pcm_hw_params_set_channels_minmax(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *min, unsigned int *max);
00716 unsigned int snd_pcm_hw_params_set_channels_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val);
00717 unsigned int snd_pcm_hw_params_set_channels_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
00718 unsigned int snd_pcm_hw_params_set_channels_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
00719 
00720 asm(".symver snd_pcm_hw_params_get_rate,snd_pcm_hw_params_get_rate@ALSA_0.9");
00721 asm(".symver snd_pcm_hw_params_get_rate_min,snd_pcm_hw_params_get_rate_min@ALSA_0.9");
00722 asm(".symver snd_pcm_hw_params_get_rate_max,snd_pcm_hw_params_get_rate_max@ALSA_0.9");
00723 asm(".symver snd_pcm_hw_params_set_rate_near,snd_pcm_hw_params_set_rate_near@ALSA_0.9");
00724 asm(".symver snd_pcm_hw_params_set_rate_first,snd_pcm_hw_params_set_rate_first@ALSA_0.9");
00725 asm(".symver snd_pcm_hw_params_set_rate_last,snd_pcm_hw_params_set_rate_last@ALSA_0.9");
00726 
00727 int snd_pcm_hw_params_get_rate(const snd_pcm_hw_params_t *params, int *dir);
00728 unsigned int snd_pcm_hw_params_get_rate_min(const snd_pcm_hw_params_t *params, int *dir);
00729 unsigned int snd_pcm_hw_params_get_rate_max(const snd_pcm_hw_params_t *params, int *dir);
00730 int snd_pcm_hw_params_test_rate(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00731 int snd_pcm_hw_params_set_rate(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00732 int snd_pcm_hw_params_set_rate_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00733 int snd_pcm_hw_params_set_rate_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00734 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);
00735 unsigned int snd_pcm_hw_params_set_rate_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int *dir);
00736 unsigned int snd_pcm_hw_params_set_rate_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int *dir);
00737 unsigned int snd_pcm_hw_params_set_rate_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int *dir);
00738 
00739 asm(".symver snd_pcm_hw_params_get_period_time,snd_pcm_hw_params_get_period_time@ALSA_0.9");
00740 asm(".symver snd_pcm_hw_params_get_period_time_min,snd_pcm_hw_params_get_period_time_min@ALSA_0.9");
00741 asm(".symver snd_pcm_hw_params_get_period_time_max,snd_pcm_hw_params_get_period_time_max@ALSA_0.9");
00742 asm(".symver snd_pcm_hw_params_set_period_time_near,snd_pcm_hw_params_set_period_time_near@ALSA_0.9");
00743 asm(".symver snd_pcm_hw_params_set_period_time_first,snd_pcm_hw_params_set_period_time_first@ALSA_0.9");
00744 asm(".symver snd_pcm_hw_params_set_period_time_last,snd_pcm_hw_params_set_period_time_last@ALSA_0.9");
00745 
00746 int snd_pcm_hw_params_get_period_time(const snd_pcm_hw_params_t *params, int *dir);
00747 unsigned int snd_pcm_hw_params_get_period_time_min(const snd_pcm_hw_params_t *params, int *dir);
00748 unsigned int snd_pcm_hw_params_get_period_time_max(const snd_pcm_hw_params_t *params, int *dir);
00749 int snd_pcm_hw_params_test_period_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00750 int snd_pcm_hw_params_set_period_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00751 int snd_pcm_hw_params_set_period_time_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00752 int snd_pcm_hw_params_set_period_time_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00753 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);
00754 unsigned int snd_pcm_hw_params_set_period_time_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int *dir);
00755 unsigned int snd_pcm_hw_params_set_period_time_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int *dir);
00756 unsigned int snd_pcm_hw_params_set_period_time_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int *dir);
00757 
00758 asm(".symver snd_pcm_hw_params_get_period_size,snd_pcm_hw_params_get_period_size@ALSA_0.9");
00759 asm(".symver snd_pcm_hw_params_get_period_size_min,snd_pcm_hw_params_get_period_size_min@ALSA_0.9");
00760 asm(".symver snd_pcm_hw_params_get_period_size_max,snd_pcm_hw_params_get_period_size_max@ALSA_0.9");
00761 asm(".symver snd_pcm_hw_params_set_period_size_near,snd_pcm_hw_params_set_period_size_near@ALSA_0.9");
00762 asm(".symver snd_pcm_hw_params_set_period_size_first,snd_pcm_hw_params_set_period_size_first@ALSA_0.9");
00763 asm(".symver snd_pcm_hw_params_set_period_size_last,snd_pcm_hw_params_set_period_size_last@ALSA_0.9");
00764 
00765 snd_pcm_sframes_t snd_pcm_hw_params_get_period_size(const snd_pcm_hw_params_t *params, int *dir);
00766 snd_pcm_uframes_t snd_pcm_hw_params_get_period_size_min(const snd_pcm_hw_params_t *params, int *dir);
00767 snd_pcm_uframes_t snd_pcm_hw_params_get_period_size_max(const snd_pcm_hw_params_t *params, int *dir);
00768 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);
00769 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);
00770 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);
00771 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);
00772 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);
00773 snd_pcm_uframes_t 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);
00774 snd_pcm_uframes_t snd_pcm_hw_params_set_period_size_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int *dir);
00775 snd_pcm_uframes_t snd_pcm_hw_params_set_period_size_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int *dir);
00776 int snd_pcm_hw_params_set_period_size_integer(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
00777 
00778 asm(".symver snd_pcm_hw_params_get_periods,snd_pcm_hw_params_get_periods@ALSA_0.9");
00779 asm(".symver snd_pcm_hw_params_get_periods_min,snd_pcm_hw_params_get_periods_min@ALSA_0.9");
00780 asm(".symver snd_pcm_hw_params_get_periods_max,snd_pcm_hw_params_get_periods_max@ALSA_0.9");
00781 asm(".symver snd_pcm_hw_params_set_periods_near,snd_pcm_hw_params_set_periods_near@ALSA_0.9");
00782 asm(".symver snd_pcm_hw_params_set_periods_first,snd_pcm_hw_params_set_periods_first@ALSA_0.9");
00783 asm(".symver snd_pcm_hw_params_set_periods_last,snd_pcm_hw_params_set_periods_last@ALSA_0.9");
00784 
00785 int snd_pcm_hw_params_get_periods(const snd_pcm_hw_params_t *params, int *dir);
00786 unsigned int snd_pcm_hw_params_get_periods_min(const snd_pcm_hw_params_t *params, int *dir);
00787 unsigned int snd_pcm_hw_params_get_periods_max(const snd_pcm_hw_params_t *params, int *dir);
00788 int snd_pcm_hw_params_test_periods(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00789 int snd_pcm_hw_params_set_periods(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00790 int snd_pcm_hw_params_set_periods_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00791 int snd_pcm_hw_params_set_periods_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00792 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);
00793 unsigned int snd_pcm_hw_params_set_periods_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int *dir);
00794 unsigned int snd_pcm_hw_params_set_periods_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int *dir);
00795 unsigned int snd_pcm_hw_params_set_periods_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int *dir);
00796 int snd_pcm_hw_params_set_periods_integer(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
00797 
00798 asm(".symver snd_pcm_hw_params_get_buffer_time,snd_pcm_hw_params_get_buffer_time@ALSA_0.9");
00799 asm(".symver snd_pcm_hw_params_get_buffer_time_min,snd_pcm_hw_params_get_buffer_time_min@ALSA_0.9");
00800 asm(".symver snd_pcm_hw_params_get_buffer_time_max,snd_pcm_hw_params_get_buffer_time_max@ALSA_0.9");
00801 asm(".symver snd_pcm_hw_params_set_buffer_time_near,snd_pcm_hw_params_set_buffer_time_near@ALSA_0.9");
00802 asm(".symver snd_pcm_hw_params_set_buffer_time_first,snd_pcm_hw_params_set_buffer_time_first@ALSA_0.9");
00803 asm(".symver snd_pcm_hw_params_set_buffer_time_last,snd_pcm_hw_params_set_buffer_time_last@ALSA_0.9");
00804 
00805 int snd_pcm_hw_params_get_buffer_time(const snd_pcm_hw_params_t *params, int *dir);
00806 unsigned int snd_pcm_hw_params_get_buffer_time_min(const snd_pcm_hw_params_t *params, int *dir);
00807 unsigned int snd_pcm_hw_params_get_buffer_time_max(const snd_pcm_hw_params_t *params, int *dir);
00808 int snd_pcm_hw_params_test_buffer_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00809 int snd_pcm_hw_params_set_buffer_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00810 int snd_pcm_hw_params_set_buffer_time_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00811 int snd_pcm_hw_params_set_buffer_time_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00812 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);
00813 unsigned int snd_pcm_hw_params_set_buffer_time_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int *dir);
00814 unsigned int snd_pcm_hw_params_set_buffer_time_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int *dir);
00815 unsigned int snd_pcm_hw_params_set_buffer_time_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int *dir);
00816 
00817 asm(".symver snd_pcm_hw_params_get_buffer_size,snd_pcm_hw_params_get_buffer_size@ALSA_0.9");
00818 asm(".symver snd_pcm_hw_params_get_buffer_size_min,snd_pcm_hw_params_get_buffer_size_min@ALSA_0.9");
00819 asm(".symver snd_pcm_hw_params_get_buffer_size_max,snd_pcm_hw_params_get_buffer_size_max@ALSA_0.9");
00820 asm(".symver snd_pcm_hw_params_set_buffer_size_near,snd_pcm_hw_params_set_buffer_size_near@ALSA_0.9");
00821 asm(".symver snd_pcm_hw_params_set_buffer_size_first,snd_pcm_hw_params_set_buffer_size_first@ALSA_0.9");
00822 asm(".symver snd_pcm_hw_params_set_buffer_size_last,snd_pcm_hw_params_set_buffer_size_last@ALSA_0.9");
00823 
00824 snd_pcm_sframes_t snd_pcm_hw_params_get_buffer_size(const snd_pcm_hw_params_t *params);
00825 snd_pcm_uframes_t snd_pcm_hw_params_get_buffer_size_min(const snd_pcm_hw_params_t *params);
00826 snd_pcm_uframes_t snd_pcm_hw_params_get_buffer_size_max(const snd_pcm_hw_params_t *params);
00827 int snd_pcm_hw_params_test_buffer_size(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t val);
00828 int snd_pcm_hw_params_set_buffer_size(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t val);
00829 int snd_pcm_hw_params_set_buffer_size_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
00830 int snd_pcm_hw_params_set_buffer_size_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
00831 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);
00832 snd_pcm_uframes_t snd_pcm_hw_params_set_buffer_size_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t val);
00833 snd_pcm_uframes_t snd_pcm_hw_params_set_buffer_size_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
00834 snd_pcm_uframes_t snd_pcm_hw_params_set_buffer_size_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
00835 
00836 asm(".symver snd_pcm_hw_params_get_tick_time,snd_pcm_hw_params_get_tick_time@ALSA_0.9");
00837 asm(".symver snd_pcm_hw_params_get_tick_time_min,snd_pcm_hw_params_get_tick_time_min@ALSA_0.9");
00838 asm(".symver snd_pcm_hw_params_get_tick_time_max,snd_pcm_hw_params_get_tick_time_max@ALSA_0.9");
00839 asm(".symver snd_pcm_hw_params_set_tick_time_near,snd_pcm_hw_params_set_tick_time_near@ALSA_0.9");
00840 asm(".symver snd_pcm_hw_params_set_tick_time_first,snd_pcm_hw_params_set_tick_time_first@ALSA_0.9");
00841 asm(".symver snd_pcm_hw_params_set_tick_time_last,snd_pcm_hw_params_set_tick_time_last@ALSA_0.9");
00842 
00843 int snd_pcm_hw_params_get_tick_time(const snd_pcm_hw_params_t *params, int *dir);
00844 unsigned int snd_pcm_hw_params_get_tick_time_min(const snd_pcm_hw_params_t *params, int *dir);
00845 unsigned int snd_pcm_hw_params_get_tick_time_max(const snd_pcm_hw_params_t *params, int *dir);
00846 int snd_pcm_hw_params_test_tick_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00847 int snd_pcm_hw_params_set_tick_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
00848 int snd_pcm_hw_params_set_tick_time_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00849 int snd_pcm_hw_params_set_tick_time_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
00850 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);
00851 unsigned int snd_pcm_hw_params_set_tick_time_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int *dir);
00852 unsigned int snd_pcm_hw_params_set_tick_time_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int *dir);
00853 unsigned int snd_pcm_hw_params_set_tick_time_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int *dir);
00854 
00855 #endif /* ALSA_PCM_OLD_HW_PARAMS_API */
00856 #endif /* ALSA_LIBRARY_BUILD */
00857 
00858 int snd_pcm_hw_params_get_min_align(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
00859 
00869 size_t snd_pcm_sw_params_sizeof(void);
00874 #define snd_pcm_sw_params_alloca(ptr) do { assert(ptr); *ptr = (snd_pcm_sw_params_t *) alloca(snd_pcm_sw_params_sizeof()); memset(*ptr, 0, snd_pcm_sw_params_sizeof()); } while (0)
00875 int snd_pcm_sw_params_malloc(snd_pcm_sw_params_t **ptr);
00876 void snd_pcm_sw_params_free(snd_pcm_sw_params_t *obj);
00877 void snd_pcm_sw_params_copy(snd_pcm_sw_params_t *dst, const snd_pcm_sw_params_t *src);
00878 int snd_pcm_sw_params_get_boundary(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val);
00879 
00880 #ifndef ALSA_LIBRARY_BUILD
00881 #ifndef ALSA_PCM_OLD_SW_PARAMS_API
00882 
00883 int snd_pcm_sw_params_set_tstamp_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_tstamp_t val);
00884 int snd_pcm_sw_params_get_tstamp_mode(const snd_pcm_sw_params_t *params, snd_pcm_tstamp_t *val);
00885 int snd_pcm_sw_params_set_sleep_min(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, unsigned int val);
00886 int snd_pcm_sw_params_get_sleep_min(const snd_pcm_sw_params_t *params, unsigned int *val);
00887 int snd_pcm_sw_params_set_avail_min(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
00888 int snd_pcm_sw_params_get_avail_min(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val);
00889 int snd_pcm_sw_params_set_xfer_align(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
00890 int snd_pcm_sw_params_get_xfer_align(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val);
00891 int snd_pcm_sw_params_set_start_threshold(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
00892 int snd_pcm_sw_params_get_start_threshold(const snd_pcm_sw_params_t *paramsm, snd_pcm_uframes_t *val);
00893 int snd_pcm_sw_params_set_stop_threshold(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
00894 int snd_pcm_sw_params_get_stop_threshold(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val);
00895 int snd_pcm_sw_params_set_silence_threshold(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
00896 int snd_pcm_sw_params_get_silence_threshold(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val);
00897 int snd_pcm_sw_params_set_silence_size(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
00898 int snd_pcm_sw_params_get_silence_size(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val);
00899 
00900 #else
00901 
00902 asm(".symver snd_pcm_sw_params_get_tstamp_mode,snd_pcm_sw_params_get_tstamp_mode@ALSA_0.9");
00903 asm(".symver snd_pcm_sw_params_get_sleep_min,snd_pcm_sw_params_get_sleep_min@ALSA_0.9");
00904 asm(".symver snd_pcm_sw_params_get_avail_min,snd_pcm_sw_params_get_avail_min@ALSA_0.9");
00905 asm(".symver snd_pcm_sw_params_get_xfer_align,snd_pcm_sw_params_get_xfer_align@ALSA_0.9");
00906 asm(".symver snd_pcm_sw_params_get_start_threshold,snd_pcm_sw_params_get_start_threshold@ALSA_0.9");
00907 asm(".symver snd_pcm_sw_params_get_stop_threshold,snd_pcm_sw_params_set_stop_threshold@ALSA_0.9");
00908 asm(".symver snd_pcm_sw_params_get_silence_threshold,snd_pcm_sw_params_get_silence_threshold@ALSA_0.9");
00909 asm(".symver snd_pcm_sw_params_get_silence_size,snd_pcm_sw_params_get_silence_size@ALSA_0.9");
00910 
00911 int snd_pcm_sw_params_set_tstamp_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_tstamp_t val);
00912 snd_pcm_tstamp_t snd_pcm_sw_params_get_tstamp_mode(const snd_pcm_sw_params_t *params);
00913 int snd_pcm_sw_params_set_sleep_min(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, unsigned int val);
00914 unsigned int snd_pcm_sw_params_get_sleep_min(const snd_pcm_sw_params_t *params);
00915 int snd_pcm_sw_params_set_avail_min(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
00916 snd_pcm_uframes_t snd_pcm_sw_params_get_avail_min(const snd_pcm_sw_params_t *params);
00917 int snd_pcm_sw_params_set_xfer_align(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
00918 snd_pcm_uframes_t snd_pcm_sw_params_get_xfer_align(const snd_pcm_sw_params_t *params);
00919 int snd_pcm_sw_params_set_start_threshold(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
00920 snd_pcm_uframes_t snd_pcm_sw_params_get_start_threshold(const snd_pcm_sw_params_t *params);
00921 int snd_pcm_sw_params_set_stop_threshold(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
00922 snd_pcm_uframes_t snd_pcm_sw_params_get_stop_threshold(const snd_pcm_sw_params_t *params);
00923 int snd_pcm_sw_params_set_silence_threshold(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
00924 snd_pcm_uframes_t snd_pcm_sw_params_get_silence_threshold(const snd_pcm_sw_params_t *params);
00925 int snd_pcm_sw_params_set_silence_size(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
00926 snd_pcm_uframes_t snd_pcm_sw_params_get_silence_size(const snd_pcm_sw_params_t *params);
00927 
00928 #endif /* ALSA_PCM_OLD_SW_PARAMS_API */
00929 #endif /* ALSA_LIBRARY_BUILD */
00930 
00940 size_t snd_pcm_access_mask_sizeof(void);
00945 #define snd_pcm_access_mask_alloca(ptr) do { assert(ptr); *ptr = (snd_pcm_access_mask_t *) alloca(snd_pcm_access_mask_sizeof()); memset(*ptr, 0, snd_pcm_access_mask_sizeof()); } while (0)
00946 int snd_pcm_access_mask_malloc(snd_pcm_access_mask_t **ptr);
00947 void snd_pcm_access_mask_free(snd_pcm_access_mask_t *obj);
00948 void snd_pcm_access_mask_copy(snd_pcm_access_mask_t *dst, const snd_pcm_access_mask_t *src);
00949 void snd_pcm_access_mask_none(snd_pcm_access_mask_t *mask);
00950 void snd_pcm_access_mask_any(snd_pcm_access_mask_t *mask);
00951 int snd_pcm_access_mask_test(const snd_pcm_access_mask_t *mask, snd_pcm_access_t val);
00952 int snd_pcm_access_mask_empty(const snd_pcm_access_mask_t *mask);
00953 void snd_pcm_access_mask_set(snd_pcm_access_mask_t *mask, snd_pcm_access_t val);
00954 void snd_pcm_access_mask_reset(snd_pcm_access_mask_t *mask, snd_pcm_access_t val);
00955 
00965 size_t snd_pcm_format_mask_sizeof(void);
00970 #define snd_pcm_format_mask_alloca(ptr) do { assert(ptr); *ptr = (snd_pcm_format_mask_t *) alloca(snd_pcm_format_mask_sizeof()); memset(*ptr, 0, snd_pcm_format_mask_sizeof()); } while (0)
00971 int snd_pcm_format_mask_malloc(snd_pcm_format_mask_t **ptr);
00972 void snd_pcm_format_mask_free(snd_pcm_format_mask_t *obj);
00973 void snd_pcm_format_mask_copy(snd_pcm_format_mask_t *dst, const snd_pcm_format_mask_t *src);
00974 void snd_pcm_format_mask_none(snd_pcm_format_mask_t *mask);
00975 void snd_pcm_format_mask_any(snd_pcm_format_mask_t *mask);
00976 int snd_pcm_format_mask_test(const snd_pcm_format_mask_t *mask, snd_pcm_format_t val);
00977 int snd_pcm_format_mask_empty(const snd_pcm_format_mask_t *mask);
00978 void snd_pcm_format_mask_set(snd_pcm_format_mask_t *mask, snd_pcm_format_t val);
00979 void snd_pcm_format_mask_reset(snd_pcm_format_mask_t *mask, snd_pcm_format_t val);
00980 
00990 size_t snd_pcm_subformat_mask_sizeof(void);
00995 #define snd_pcm_subformat_mask_alloca(ptr) do { assert(ptr); *ptr = (snd_pcm_subformat_mask_t *) alloca(snd_pcm_subformat_mask_sizeof()); memset(*ptr, 0, snd_pcm_subformat_mask_sizeof()); } while (0)
00996 int snd_pcm_subformat_mask_malloc(snd_pcm_subformat_mask_t **ptr);
00997 void snd_pcm_subformat_mask_free(snd_pcm_subformat_mask_t *obj);
00998 void snd_pcm_subformat_mask_copy(snd_pcm_subformat_mask_t *dst, const snd_pcm_subformat_mask_t *src);
00999 void snd_pcm_subformat_mask_none(snd_pcm_subformat_mask_t *mask);
01000 void snd_pcm_subformat_mask_any(snd_pcm_subformat_mask_t *mask);
01001 int snd_pcm_subformat_mask_test(const snd_pcm_subformat_mask_t *mask, snd_pcm_subformat_t val);
01002 int snd_pcm_subformat_mask_empty(const snd_pcm_subformat_mask_t *mask);
01003 void snd_pcm_subformat_mask_set(snd_pcm_subformat_mask_t *mask, snd_pcm_subformat_t val);
01004 void snd_pcm_subformat_mask_reset(snd_pcm_subformat_mask_t *mask, snd_pcm_subformat_t val);
01005 
01015 size_t snd_pcm_status_sizeof(void);
01020 #define snd_pcm_status_alloca(ptr) do { assert(ptr); *ptr = (snd_pcm_status_t *) alloca(snd_pcm_status_sizeof()); memset(*ptr, 0, snd_pcm_status_sizeof()); } while (0)
01021 int snd_pcm_status_malloc(snd_pcm_status_t **ptr);
01022 void snd_pcm_status_free(snd_pcm_status_t *obj);
01023 void snd_pcm_status_copy(snd_pcm_status_t *dst, const snd_pcm_status_t *src);
01024 snd_pcm_state_t snd_pcm_status_get_state(const snd_pcm_status_t *obj);
01025 void snd_pcm_status_get_trigger_tstamp(const snd_pcm_status_t *obj, snd_timestamp_t *ptr);
01026 void snd_pcm_status_get_trigger_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr);
01027 void snd_pcm_status_get_tstamp(const snd_pcm_status_t *obj, snd_timestamp_t *ptr);
01028 void snd_pcm_status_get_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr);
01029 snd_pcm_sframes_t snd_pcm_status_get_delay(const snd_pcm_status_t *obj);
01030 snd_pcm_uframes_t snd_pcm_status_get_avail(const snd_pcm_status_t *obj);
01031 snd_pcm_uframes_t snd_pcm_status_get_avail_max(const snd_pcm_status_t *obj);
01032 snd_pcm_uframes_t snd_pcm_status_get_overrange(const snd_pcm_status_t *obj);
01033 
01043 const char *snd_pcm_type_name(snd_pcm_type_t type);
01044 const char *snd_pcm_stream_name(const snd_pcm_stream_t stream);
01045 const char *snd_pcm_access_name(const snd_pcm_access_t _access);
01046 const char *snd_pcm_format_name(const snd_pcm_format_t format);
01047 const char *snd_pcm_format_description(const snd_pcm_format_t format);
01048 const char *snd_pcm_subformat_name(const snd_pcm_subformat_t subformat);
01049 const char *snd_pcm_subformat_description(const snd_pcm_subformat_t subformat);
01050 snd_pcm_format_t snd_pcm_format_value(const char* name);
01051 const char *snd_pcm_tstamp_mode_name(const snd_pcm_tstamp_t mode);
01052 const char *snd_pcm_state_name(const snd_pcm_state_t state);
01053 
01063 int snd_pcm_dump(snd_pcm_t *pcm, snd_output_t *out);
01064 int snd_pcm_dump_hw_setup(snd_pcm_t *pcm, snd_output_t *out);
01065 int snd_pcm_dump_sw_setup(snd_pcm_t *pcm, snd_output_t *out);
01066 int snd_pcm_dump_setup(snd_pcm_t *pcm, snd_output_t *out);
01067 int snd_pcm_hw_params_dump(snd_pcm_hw_params_t *params, snd_output_t *out);
01068 int snd_pcm_sw_params_dump(snd_pcm_sw_params_t *params, snd_output_t *out);
01069 int snd_pcm_status_dump(snd_pcm_status_t *status, snd_output_t *out);
01070 
01080 int snd_pcm_mmap_begin(snd_pcm_t *pcm,
01081                        const snd_pcm_channel_area_t **areas,
01082                        snd_pcm_uframes_t *offset,
01083                        snd_pcm_uframes_t *frames);
01084 snd_pcm_sframes_t snd_pcm_mmap_commit(snd_pcm_t *pcm,
01085                                       snd_pcm_uframes_t offset,
01086                                       snd_pcm_uframes_t frames);
01087 snd_pcm_sframes_t snd_pcm_mmap_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size);
01088 snd_pcm_sframes_t snd_pcm_mmap_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size);
01089 snd_pcm_sframes_t snd_pcm_mmap_writen(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size);
01090 snd_pcm_sframes_t snd_pcm_mmap_readn(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size);                                                                
01091 
01101 int snd_pcm_format_signed(snd_pcm_format_t format);
01102 int snd_pcm_format_unsigned(snd_pcm_format_t format);
01103 int snd_pcm_format_linear(snd_pcm_format_t format);
01104 int snd_pcm_format_float(snd_pcm_format_t format);
01105 int snd_pcm_format_little_endian(snd_pcm_format_t format);
01106 int snd_pcm_format_big_endian(snd_pcm_format_t format);
01107 int snd_pcm_format_cpu_endian(snd_pcm_format_t format);
01108 int snd_pcm_format_width(snd_pcm_format_t format);                      /* in bits */
01109 int snd_pcm_format_physical_width(snd_pcm_format_t format);             /* in bits */
01110 snd_pcm_format_t snd_pcm_build_linear_format(int width, int pwidth, int unsignd, int big_endian);
01111 ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples);
01112 u_int8_t snd_pcm_format_silence(snd_pcm_format_t format);
01113 u_int16_t snd_pcm_format_silence_16(snd_pcm_format_t format);
01114 u_int32_t snd_pcm_format_silence_32(snd_pcm_format_t format);
01115 u_int64_t snd_pcm_format_silence_64(snd_pcm_format_t format);
01116 int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int samples);
01117 
01118 snd_pcm_sframes_t snd_pcm_bytes_to_frames(snd_pcm_t *pcm, ssize_t bytes);
01119 ssize_t snd_pcm_frames_to_bytes(snd_pcm_t *pcm, snd_pcm_sframes_t frames);
01120 long snd_pcm_bytes_to_samples(snd_pcm_t *pcm, ssize_t bytes);
01121 ssize_t snd_pcm_samples_to_bytes(snd_pcm_t *pcm, long samples);
01122 
01123 int snd_pcm_area_silence(const snd_pcm_channel_area_t *dst_channel, snd_pcm_uframes_t dst_offset,
01124                          unsigned int samples, snd_pcm_format_t format);
01125 int snd_pcm_areas_silence(const snd_pcm_channel_area_t *dst_channels, snd_pcm_uframes_t dst_offset,
01126                           unsigned int channels, snd_pcm_uframes_t frames, snd_pcm_format_t format);
01127 int snd_pcm_area_copy(const snd_pcm_channel_area_t *dst_channel, snd_pcm_uframes_t dst_offset,
01128                       const snd_pcm_channel_area_t *src_channel, snd_pcm_uframes_t src_offset,
01129                       unsigned int samples, snd_pcm_format_t format);
01130 int snd_pcm_areas_copy(const snd_pcm_channel_area_t *dst_channels, snd_pcm_uframes_t dst_offset,
01131                        const snd_pcm_channel_area_t *src_channels, snd_pcm_uframes_t src_offset,
01132                        unsigned int channels, snd_pcm_uframes_t frames, snd_pcm_format_t format);
01133 
01144 typedef enum _snd_pcm_hook_type {
01145         SND_PCM_HOOK_TYPE_HW_PARAMS = 0,
01146         SND_PCM_HOOK_TYPE_HW_FREE,
01147         SND_PCM_HOOK_TYPE_CLOSE,
01148         SND_PCM_HOOK_TYPE_LAST = SND_PCM_HOOK_TYPE_CLOSE
01149 } snd_pcm_hook_type_t;
01150 
01152 typedef struct _snd_pcm_hook snd_pcm_hook_t;
01154 typedef int (*snd_pcm_hook_func_t)(snd_pcm_hook_t *hook);
01155 snd_pcm_t *snd_pcm_hook_get_pcm(snd_pcm_hook_t *hook);
01156 void *snd_pcm_hook_get_private(snd_pcm_hook_t *hook);
01157 void snd_pcm_hook_set_private(snd_pcm_hook_t *hook, void *private_data);
01158 int snd_pcm_hook_add(snd_pcm_hook_t **hookp, snd_pcm_t *pcm,
01159                      snd_pcm_hook_type_t type,
01160                      snd_pcm_hook_func_t func, void *private_data);
01161 int snd_pcm_hook_remove(snd_pcm_hook_t *hook);
01162 
01173 typedef struct _snd_pcm_scope_ops {
01177         int (*enable)(snd_pcm_scope_t *scope);
01181         void (*disable)(snd_pcm_scope_t *scope);
01185         void (*start)(snd_pcm_scope_t *scope);
01189         void (*stop)(snd_pcm_scope_t *scope);
01193         void (*update)(snd_pcm_scope_t *scope);
01197         void (*reset)(snd_pcm_scope_t *scope);
01201         void (*close)(snd_pcm_scope_t *scope);
01202 } snd_pcm_scope_ops_t;
01203 
01204 snd_pcm_uframes_t snd_pcm_meter_get_bufsize(snd_pcm_t *pcm);
01205 unsigned int snd_pcm_meter_get_channels(snd_pcm_t *pcm);
01206 unsigned int snd_pcm_meter_get_rate(snd_pcm_t *pcm);
01207 snd_pcm_uframes_t snd_pcm_meter_get_now(snd_pcm_t *pcm);
01208 snd_pcm_uframes_t snd_pcm_meter_get_boundary(snd_pcm_t *pcm);
01209 int snd_pcm_meter_add_scope(snd_pcm_t *pcm, snd_pcm_scope_t *scope);
01210 snd_pcm_scope_t *snd_pcm_meter_search_scope(snd_pcm_t *pcm, const char *name);
01211 int snd_pcm_scope_malloc(snd_pcm_scope_t **ptr);
01212 void snd_pcm_scope_set_ops(snd_pcm_scope_t *scope, snd_pcm_scope_ops_t *val);
01213 void snd_pcm_scope_set_name(snd_pcm_scope_t *scope, const char *val);
01214 const char *snd_pcm_scope_get_name(snd_pcm_scope_t *scope);
01215 void *snd_pcm_scope_get_callback_private(snd_pcm_scope_t *scope);
01216 void snd_pcm_scope_set_callback_private(snd_pcm_scope_t *scope, void *val);
01217 int snd_pcm_scope_s16_open(snd_pcm_t *pcm, const char *name,
01218                            snd_pcm_scope_t **scopep);
01219 int16_t *snd_pcm_scope_s16_get_channel_buffer(snd_pcm_scope_t *scope,
01220                                               unsigned int channel);
01221 
01232 typedef enum _snd_spcm_latency {
01235         SND_SPCM_LATENCY_STANDARD = 0,
01238         SND_SPCM_LATENCY_MEDIUM,
01241         SND_SPCM_LATENCY_REALTIME
01242 } snd_spcm_latency_t;
01243 
01245 typedef enum _snd_spcm_xrun_type {
01247         SND_SPCM_XRUN_IGNORE = 0,
01249         SND_SPCM_XRUN_STOP
01250 } snd_spcm_xrun_type_t;
01251 
01253 typedef enum _snd_spcm_duplex_type {
01255         SND_SPCM_DUPLEX_LIBERAL = 0,
01257         SND_SPCM_DUPLEX_PEDANTIC
01258 } snd_spcm_duplex_type_t;
01259 
01260 int snd_spcm_init(snd_pcm_t *pcm,
01261                   unsigned int rate,
01262                   unsigned int channels,
01263                   snd_pcm_format_t format,
01264                   snd_pcm_subformat_t subformat,
01265                   snd_spcm_latency_t latency,
01266                   snd_pcm_access_t _access,
01267                   snd_spcm_xrun_type_t xrun_type);
01268 
01269 int snd_spcm_init_duplex(snd_pcm_t *playback_pcm,
01270                          snd_pcm_t *capture_pcm,
01271                          unsigned int rate,
01272                          unsigned int channels,
01273                          snd_pcm_format_t format,
01274                          snd_pcm_subformat_t subformat,
01275                          snd_spcm_latency_t latency,
01276                          snd_pcm_access_t _access,
01277                          snd_spcm_xrun_type_t xrun_type,
01278                          snd_spcm_duplex_type_t duplex_type);
01279 
01280 int snd_spcm_init_get_params(snd_pcm_t *pcm,
01281                              unsigned int *rate,
01282                              snd_pcm_uframes_t *buffer_size,
01283                              snd_pcm_uframes_t *period_size);
01284 
01294 /* Deprecated functions, for compatibility */
01295 const char *snd_pcm_start_mode_name(snd_pcm_start_t mode);
01296 const char *snd_pcm_xrun_mode_name(snd_pcm_xrun_t mode);
01297 int snd_pcm_sw_params_set_start_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_start_t val);
01298 snd_pcm_start_t snd_pcm_sw_params_get_start_mode(const snd_pcm_sw_params_t *params);
01299 int snd_pcm_sw_params_set_xrun_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_xrun_t val);
01300 snd_pcm_xrun_t snd_pcm_sw_params_get_xrun_mode(const snd_pcm_sw_params_t *params);
01301 
01304 #ifdef __cplusplus
01305 }
01306 #endif
01307 
01308 #endif /* __ALSA_PCM_H */

Generated on Sat Mar 19 20:57:59 2005 for ALSA project - the C library reference by  doxygen 1.4.1