ALSA project - the C library reference: /tmp/work/src/alsa-lib-1.2.12/include/pcm.h Source File

ALSA project - the C library reference

Loading...
Searching...
No Matches
pcm.h
Go to the documentation of this file.
1
12/*
13 * This library is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU Lesser General Public License as
15 * published by the Free Software Foundation; either version 2.1 of
16 * the License, or (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License for more details.
22 *
23 * You should have received a copy of the GNU Lesser General Public
24 * License along with this library; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 *
27 */
28
29#ifndef __ALSA_PCM_H
30#define __ALSA_PCM_H
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36#include <stdint.h>
37
45#define SND_PCM_DLSYM_VERSION _dlsym_pcm_001
46
48 typedef struct _snd_pcm_info snd_pcm_info_t;
49
64 typedef struct _snd_pcm_hw_params snd_pcm_hw_params_t;
65
67 typedef struct _snd_pcm_sw_params snd_pcm_sw_params_t;
69 typedef struct _snd_pcm_status snd_pcm_status_t;
71 typedef struct _snd_pcm_access_mask snd_pcm_access_mask_t;
73 typedef struct _snd_pcm_format_mask snd_pcm_format_mask_t;
75 typedef struct _snd_pcm_subformat_mask snd_pcm_subformat_mask_t;
76
78 typedef enum _snd_pcm_class {
81 SND_PCM_CLASS_GENERIC = 0,
83 SND_PCM_CLASS_MULTI,
85 SND_PCM_CLASS_MODEM,
87 SND_PCM_CLASS_DIGITIZER,
88 SND_PCM_CLASS_LAST = SND_PCM_CLASS_DIGITIZER
89} snd_pcm_class_t;
90
92 typedef enum _snd_pcm_subclass {
94 SND_PCM_SUBCLASS_GENERIC_MIX = 0,
96 SND_PCM_SUBCLASS_MULTI_MIX,
97 SND_PCM_SUBCLASS_LAST = SND_PCM_SUBCLASS_MULTI_MIX
98} snd_pcm_subclass_t;
99
101 typedef enum _snd_pcm_stream {
103 SND_PCM_STREAM_PLAYBACK = 0,
105 SND_PCM_STREAM_CAPTURE,
106 SND_PCM_STREAM_LAST = SND_PCM_STREAM_CAPTURE
107} snd_pcm_stream_t;
108
110 typedef enum _snd_pcm_access {
112 SND_PCM_ACCESS_MMAP_INTERLEAVED = 0,
114 SND_PCM_ACCESS_MMAP_NONINTERLEAVED,
116 SND_PCM_ACCESS_MMAP_COMPLEX,
118 SND_PCM_ACCESS_RW_INTERLEAVED,
120 SND_PCM_ACCESS_RW_NONINTERLEAVED,
121 SND_PCM_ACCESS_LAST = SND_PCM_ACCESS_RW_NONINTERLEAVED
122} snd_pcm_access_t;
123
125 typedef enum _snd_pcm_format {
127 SND_PCM_FORMAT_UNKNOWN = -1,
129 SND_PCM_FORMAT_S8 = 0,
131 SND_PCM_FORMAT_U8,
133 SND_PCM_FORMAT_S16_LE,
135 SND_PCM_FORMAT_S16_BE,
137 SND_PCM_FORMAT_U16_LE,
139 SND_PCM_FORMAT_U16_BE,
141 SND_PCM_FORMAT_S24_LE,
143 SND_PCM_FORMAT_S24_BE,
145 SND_PCM_FORMAT_U24_LE,
147 SND_PCM_FORMAT_U24_BE,
149 SND_PCM_FORMAT_S32_LE,
151 SND_PCM_FORMAT_S32_BE,
153 SND_PCM_FORMAT_U32_LE,
155 SND_PCM_FORMAT_U32_BE,
157 SND_PCM_FORMAT_FLOAT_LE,
159 SND_PCM_FORMAT_FLOAT_BE,
161 SND_PCM_FORMAT_FLOAT64_LE,
163 SND_PCM_FORMAT_FLOAT64_BE,
165 SND_PCM_FORMAT_IEC958_SUBFRAME_LE,
167 SND_PCM_FORMAT_IEC958_SUBFRAME_BE,
169 SND_PCM_FORMAT_MU_LAW,
171 SND_PCM_FORMAT_A_LAW,
173 SND_PCM_FORMAT_IMA_ADPCM,
175 SND_PCM_FORMAT_MPEG,
177 SND_PCM_FORMAT_GSM,
179 SND_PCM_FORMAT_S20_LE,
181 SND_PCM_FORMAT_S20_BE,
183 SND_PCM_FORMAT_U20_LE,
185 SND_PCM_FORMAT_U20_BE,
187 SND_PCM_FORMAT_SPECIAL = 31,
189 SND_PCM_FORMAT_S24_3LE = 32,
191 SND_PCM_FORMAT_S24_3BE,
193 SND_PCM_FORMAT_U24_3LE,
195 SND_PCM_FORMAT_U24_3BE,
197 SND_PCM_FORMAT_S20_3LE,
199 SND_PCM_FORMAT_S20_3BE,
201 SND_PCM_FORMAT_U20_3LE,
203 SND_PCM_FORMAT_U20_3BE,
205 SND_PCM_FORMAT_S18_3LE,
207 SND_PCM_FORMAT_S18_3BE,
209 SND_PCM_FORMAT_U18_3LE,
211 SND_PCM_FORMAT_U18_3BE,
212 /* G.723 (ADPCM) 24 kbit/s, 8 samples in 3 bytes */
213 SND_PCM_FORMAT_G723_24,
214 /* G.723 (ADPCM) 24 kbit/s, 1 sample in 1 byte */
215 SND_PCM_FORMAT_G723_24_1B,
216 /* G.723 (ADPCM) 40 kbit/s, 8 samples in 3 bytes */
217 SND_PCM_FORMAT_G723_40,
218 /* G.723 (ADPCM) 40 kbit/s, 1 sample in 1 byte */
219 SND_PCM_FORMAT_G723_40_1B,
220 /* Direct Stream Digital (DSD) in 1-byte samples (x8) */
221 SND_PCM_FORMAT_DSD_U8,
222 /* Direct Stream Digital (DSD) in 2-byte samples (x16) */
223 SND_PCM_FORMAT_DSD_U16_LE,
224 /* Direct Stream Digital (DSD) in 4-byte samples (x32) */
225 SND_PCM_FORMAT_DSD_U32_LE,
226 /* Direct Stream Digital (DSD) in 2-byte samples (x16) */
227 SND_PCM_FORMAT_DSD_U16_BE,
228 /* Direct Stream Digital (DSD) in 4-byte samples (x32) */
229 SND_PCM_FORMAT_DSD_U32_BE,
230 SND_PCM_FORMAT_LAST = SND_PCM_FORMAT_DSD_U32_BE,
231
232#if __BYTE_ORDER == __LITTLE_ENDIAN
234 SND_PCM_FORMAT_S16 = SND_PCM_FORMAT_S16_LE,
236 SND_PCM_FORMAT_U16 = SND_PCM_FORMAT_U16_LE,
238 SND_PCM_FORMAT_S24 = SND_PCM_FORMAT_S24_LE,
240 SND_PCM_FORMAT_U24 = SND_PCM_FORMAT_U24_LE,
242 SND_PCM_FORMAT_S32 = SND_PCM_FORMAT_S32_LE,
244 SND_PCM_FORMAT_U32 = SND_PCM_FORMAT_U32_LE,
246 SND_PCM_FORMAT_FLOAT = SND_PCM_FORMAT_FLOAT_LE,
248 SND_PCM_FORMAT_FLOAT64 = SND_PCM_FORMAT_FLOAT64_LE,
250 SND_PCM_FORMAT_IEC958_SUBFRAME = SND_PCM_FORMAT_IEC958_SUBFRAME_LE,
252 SND_PCM_FORMAT_S20 = SND_PCM_FORMAT_S20_LE,
254 SND_PCM_FORMAT_U20 = SND_PCM_FORMAT_U20_LE,
255#elif __BYTE_ORDER == __BIG_ENDIAN
257 SND_PCM_FORMAT_S16 = SND_PCM_FORMAT_S16_BE,
259 SND_PCM_FORMAT_U16 = SND_PCM_FORMAT_U16_BE,
261 SND_PCM_FORMAT_S24 = SND_PCM_FORMAT_S24_BE,
263 SND_PCM_FORMAT_U24 = SND_PCM_FORMAT_U24_BE,
265 SND_PCM_FORMAT_S32 = SND_PCM_FORMAT_S32_BE,
267 SND_PCM_FORMAT_U32 = SND_PCM_FORMAT_U32_BE,
269 SND_PCM_FORMAT_FLOAT = SND_PCM_FORMAT_FLOAT_BE,
271 SND_PCM_FORMAT_FLOAT64 = SND_PCM_FORMAT_FLOAT64_BE,
273 SND_PCM_FORMAT_IEC958_SUBFRAME = SND_PCM_FORMAT_IEC958_SUBFRAME_BE,
275 SND_PCM_FORMAT_S20 = SND_PCM_FORMAT_S20_BE,
277 SND_PCM_FORMAT_U20 = SND_PCM_FORMAT_U20_BE,
278#else
279#error "Unknown endian"
280#endif
281} snd_pcm_format_t;
282
284 typedef enum _snd_pcm_subformat {
286 SND_PCM_SUBFORMAT_UNKNOWN = -1,
288 SND_PCM_SUBFORMAT_STD = 0,
290 SND_PCM_SUBFORMAT_MSBITS_MAX = 1,
292 SND_PCM_SUBFORMAT_MSBITS_20 = 2,
294 SND_PCM_SUBFORMAT_MSBITS_24 = 3,
295 SND_PCM_SUBFORMAT_LAST = SND_PCM_SUBFORMAT_MSBITS_24
296} snd_pcm_subformat_t;
297
299 typedef enum _snd_pcm_state {
301 SND_PCM_STATE_OPEN = 0,
303 SND_PCM_STATE_SETUP,
305 SND_PCM_STATE_PREPARED,
307 SND_PCM_STATE_RUNNING,
309 SND_PCM_STATE_XRUN,
311 SND_PCM_STATE_DRAINING,
313 SND_PCM_STATE_PAUSED,
315 SND_PCM_STATE_SUSPENDED,
317 SND_PCM_STATE_DISCONNECTED,
318 SND_PCM_STATE_LAST = SND_PCM_STATE_DISCONNECTED,
320 SND_PCM_STATE_PRIVATE1 = 1024
321} snd_pcm_state_t;
322
324 typedef enum _snd_pcm_start {
326 SND_PCM_START_DATA = 0,
328 SND_PCM_START_EXPLICIT,
329 SND_PCM_START_LAST = SND_PCM_START_EXPLICIT
330} snd_pcm_start_t;
331
333 typedef enum _snd_pcm_xrun {
335 SND_PCM_XRUN_NONE = 0,
337 SND_PCM_XRUN_STOP,
338 SND_PCM_XRUN_LAST = SND_PCM_XRUN_STOP
339} snd_pcm_xrun_t;
340
342 typedef enum _snd_pcm_tstamp {
344 SND_PCM_TSTAMP_NONE = 0,
346 SND_PCM_TSTAMP_ENABLE,
350 SND_PCM_TSTAMP_MMAP = SND_PCM_TSTAMP_ENABLE,
351 SND_PCM_TSTAMP_LAST = SND_PCM_TSTAMP_ENABLE
352} snd_pcm_tstamp_t;
353
355 typedef enum _snd_pcm_tstamp_type {
356 SND_PCM_TSTAMP_TYPE_GETTIMEOFDAY = 0,
357 SND_PCM_TSTAMP_TYPE_MONOTONIC,
358 SND_PCM_TSTAMP_TYPE_MONOTONIC_RAW,
359 SND_PCM_TSTAMP_TYPE_LAST = SND_PCM_TSTAMP_TYPE_MONOTONIC_RAW,
360} snd_pcm_tstamp_type_t;
361
363 typedef enum _snd_pcm_audio_tstamp_type {
368 SND_PCM_AUDIO_TSTAMP_TYPE_COMPAT = 0,
369 SND_PCM_AUDIO_TSTAMP_TYPE_DEFAULT = 1,
370 SND_PCM_AUDIO_TSTAMP_TYPE_LINK = 2,
371 SND_PCM_AUDIO_TSTAMP_TYPE_LINK_ABSOLUTE = 3,
372 SND_PCM_AUDIO_TSTAMP_TYPE_LINK_ESTIMATED = 4,
373 SND_PCM_AUDIO_TSTAMP_TYPE_LINK_SYNCHRONIZED = 5,
374 SND_PCM_AUDIO_TSTAMP_TYPE_LAST = SND_PCM_AUDIO_TSTAMP_TYPE_LINK_SYNCHRONIZED
375} snd_pcm_audio_tstamp_type_t;
376
378 typedef struct _snd_pcm_audio_tstamp_config {
379 /* 5 of max 16 bits used */
380 unsigned int type_requested:4;
381 unsigned int report_delay:1;
382} snd_pcm_audio_tstamp_config_t;
383
385 typedef struct _snd_pcm_audio_tstamp_report {
386 /* 6 of max 16 bits used for bit-fields */
387
388 unsigned int valid:1;
389 unsigned int actual_type:4;
391 unsigned int accuracy_report:1;
392 unsigned int accuracy;
393} snd_pcm_audio_tstamp_report_t;
394
396 typedef unsigned long snd_pcm_uframes_t;
398 typedef long snd_pcm_sframes_t;
399
401#define SND_PCM_NONBLOCK 0x00000001
403#define SND_PCM_ASYNC 0x00000002
405#define SND_PCM_EINTR 0x00000080
407#define SND_PCM_ABORT 0x00008000
409#define SND_PCM_NO_AUTO_RESAMPLE 0x00010000
411#define SND_PCM_NO_AUTO_CHANNELS 0x00020000
413#define SND_PCM_NO_AUTO_FORMAT 0x00040000
415#define SND_PCM_NO_SOFTVOL 0x00080000
416
418 typedef struct _snd_pcm snd_pcm_t;
419
421 enum _snd_pcm_type {
423 SND_PCM_TYPE_HW = 0,
425 SND_PCM_TYPE_HOOKS,
428 SND_PCM_TYPE_MULTI,
430 SND_PCM_TYPE_FILE,
432 SND_PCM_TYPE_NULL,
434 SND_PCM_TYPE_SHM,
436 SND_PCM_TYPE_INET,
438 SND_PCM_TYPE_COPY,
440 SND_PCM_TYPE_LINEAR,
442 SND_PCM_TYPE_ALAW,
444 SND_PCM_TYPE_MULAW,
446 SND_PCM_TYPE_ADPCM,
448 SND_PCM_TYPE_RATE,
450 SND_PCM_TYPE_ROUTE,
452 SND_PCM_TYPE_PLUG,
454 SND_PCM_TYPE_SHARE,
456 SND_PCM_TYPE_METER,
458 SND_PCM_TYPE_MIX,
460 SND_PCM_TYPE_DROUTE,
462 SND_PCM_TYPE_LBSERVER,
464 SND_PCM_TYPE_LINEAR_FLOAT,
466 SND_PCM_TYPE_LADSPA,
468 SND_PCM_TYPE_DMIX,
470 SND_PCM_TYPE_JACK,
472 SND_PCM_TYPE_DSNOOP,
474 SND_PCM_TYPE_DSHARE,
476 SND_PCM_TYPE_IEC958,
478 SND_PCM_TYPE_SOFTVOL,
480 SND_PCM_TYPE_IOPLUG,
482 SND_PCM_TYPE_EXTPLUG,
484 SND_PCM_TYPE_MMAP_EMUL,
485 SND_PCM_TYPE_LAST = SND_PCM_TYPE_MMAP_EMUL
486};
487
489 typedef enum _snd_pcm_type snd_pcm_type_t;
490
492 typedef struct _snd_pcm_channel_area {
494 void *addr;
496 unsigned int first;
498 unsigned int step;
499} snd_pcm_channel_area_t;
500
502 typedef union _snd_pcm_sync_id {
504 unsigned char id[16];
506 unsigned short id16[8];
508 unsigned int id32[4];
509} snd_pcm_sync_id_t;
510
512#define SND_PCM_WAIT_INFINITE (-1)
514#define SND_PCM_WAIT_IO (-10001)
516#define SND_PCM_WAIT_DRAIN (-10002)
517
519 typedef struct _snd_pcm_scope snd_pcm_scope_t;
520
521int snd_pcm_open(snd_pcm_t **pcm, const char *name,
522 snd_pcm_stream_t stream, int mode);
523int snd_pcm_open_lconf(snd_pcm_t **pcm, const char *name,
524 snd_pcm_stream_t stream, int mode,
525 snd_config_t *lconf);
526int snd_pcm_open_fallback(snd_pcm_t **pcm, snd_config_t *root,
527 const char *name, const char *orig_name,
528 snd_pcm_stream_t stream, int mode);
529
530int snd_pcm_close(snd_pcm_t *pcm);
531const char *snd_pcm_name(snd_pcm_t *pcm);
532 snd_pcm_type_t snd_pcm_type(snd_pcm_t *pcm);
533 snd_pcm_stream_t snd_pcm_stream(snd_pcm_t *pcm);
534int snd_pcm_poll_descriptors_count(snd_pcm_t *pcm);
535int snd_pcm_poll_descriptors(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int space);
536int snd_pcm_poll_descriptors_revents(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
537int snd_pcm_nonblock(snd_pcm_t *pcm, int nonblock);
538static __inline__ int snd_pcm_abort(snd_pcm_t *pcm) { return snd_pcm_nonblock(pcm, 2); }
539int snd_async_add_pcm_handler(snd_async_handler_t **handler, snd_pcm_t *pcm,
540 snd_async_callback_t callback, void *private_data);
541 snd_pcm_t *snd_async_handler_get_pcm(snd_async_handler_t *handler);
542int snd_pcm_info(snd_pcm_t *pcm, snd_pcm_info_t *info);
543int snd_pcm_hw_params_current(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
544int snd_pcm_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
545int snd_pcm_hw_free(snd_pcm_t *pcm);
546int snd_pcm_sw_params_current(snd_pcm_t *pcm, snd_pcm_sw_params_t *params);
547int snd_pcm_sw_params(snd_pcm_t *pcm, snd_pcm_sw_params_t *params);
548int snd_pcm_prepare(snd_pcm_t *pcm);
549int snd_pcm_reset(snd_pcm_t *pcm);
550int snd_pcm_status(snd_pcm_t *pcm, snd_pcm_status_t *status);
551int snd_pcm_start(snd_pcm_t *pcm);
552int snd_pcm_drop(snd_pcm_t *pcm);
553int snd_pcm_drain(snd_pcm_t *pcm);
554int snd_pcm_pause(snd_pcm_t *pcm, int enable);
555 snd_pcm_state_t snd_pcm_state(snd_pcm_t *pcm);
556int snd_pcm_hwsync(snd_pcm_t *pcm);
557int snd_pcm_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp);
558int snd_pcm_resume(snd_pcm_t *pcm);
559int snd_pcm_htimestamp(snd_pcm_t *pcm, snd_pcm_uframes_t *avail, snd_htimestamp_t *tstamp);
560 snd_pcm_sframes_t snd_pcm_avail(snd_pcm_t *pcm);
561 snd_pcm_sframes_t snd_pcm_avail_update(snd_pcm_t *pcm);
562int snd_pcm_avail_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *availp, snd_pcm_sframes_t *delayp);
563 snd_pcm_sframes_t snd_pcm_rewindable(snd_pcm_t *pcm);
564 snd_pcm_sframes_t snd_pcm_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames);
565 snd_pcm_sframes_t snd_pcm_forwardable(snd_pcm_t *pcm);
566 snd_pcm_sframes_t snd_pcm_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames);
567 snd_pcm_sframes_t snd_pcm_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size);
568 snd_pcm_sframes_t snd_pcm_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size);
569 snd_pcm_sframes_t snd_pcm_writen(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size);
570 snd_pcm_sframes_t snd_pcm_readn(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size);
571int snd_pcm_wait(snd_pcm_t *pcm, int timeout);
572
573int snd_pcm_link(snd_pcm_t *pcm1, snd_pcm_t *pcm2);
574int snd_pcm_unlink(snd_pcm_t *pcm);
575
577#define SND_CHMAP_API_VERSION ((1 << 16) | (0 << 8) | 1)
578
580 enum snd_pcm_chmap_type {
581 SND_CHMAP_TYPE_NONE = 0,
582 SND_CHMAP_TYPE_FIXED,
583 SND_CHMAP_TYPE_VAR,
584 SND_CHMAP_TYPE_PAIRED,
585 SND_CHMAP_TYPE_LAST = SND_CHMAP_TYPE_PAIRED,
586};
587
589 enum snd_pcm_chmap_position {
590 SND_CHMAP_UNKNOWN = 0,
591 SND_CHMAP_NA,
592 SND_CHMAP_MONO,
593 SND_CHMAP_FL,
594 SND_CHMAP_FR,
595 SND_CHMAP_RL,
596 SND_CHMAP_RR,
597 SND_CHMAP_FC,
598 SND_CHMAP_LFE,
599 SND_CHMAP_SL,
600 SND_CHMAP_SR,
601 SND_CHMAP_RC,
602 SND_CHMAP_FLC,
603 SND_CHMAP_FRC,
604 SND_CHMAP_RLC,
605 SND_CHMAP_RRC,
606 SND_CHMAP_FLW,
607 SND_CHMAP_FRW,
608 SND_CHMAP_FLH,
609 SND_CHMAP_FCH,
610 SND_CHMAP_FRH,
611 SND_CHMAP_TC,
612 SND_CHMAP_TFL,
613 SND_CHMAP_TFR,
614 SND_CHMAP_TFC,
615 SND_CHMAP_TRL,
616 SND_CHMAP_TRR,
617 SND_CHMAP_TRC,
618 SND_CHMAP_TFLC,
619 SND_CHMAP_TFRC,
620 SND_CHMAP_TSL,
621 SND_CHMAP_TSR,
622 SND_CHMAP_LLFE,
623 SND_CHMAP_RLFE,
624 SND_CHMAP_BC,
625 SND_CHMAP_BLC,
626 SND_CHMAP_BRC,
627 SND_CHMAP_LAST = SND_CHMAP_BRC,
628};
629
631#define SND_CHMAP_POSITION_MASK 0xffff
632
634#define SND_CHMAP_PHASE_INVERSE (0x01 << 16)
636#define SND_CHMAP_DRIVER_SPEC (0x02 << 16)
637
639 typedef struct snd_pcm_chmap {
640 unsigned int channels;
641 unsigned int pos[0];
642} snd_pcm_chmap_t;
643
645 typedef struct snd_pcm_chmap_query {
646 enum snd_pcm_chmap_type type;
647 snd_pcm_chmap_t map;
648} snd_pcm_chmap_query_t;
649
650
651 snd_pcm_chmap_query_t **snd_pcm_query_chmaps(snd_pcm_t *pcm);
652 snd_pcm_chmap_query_t **snd_pcm_query_chmaps_from_hw(int card, int dev,
653 int subdev,
654 snd_pcm_stream_t stream);
655void snd_pcm_free_chmaps(snd_pcm_chmap_query_t **maps);
656 snd_pcm_chmap_t *snd_pcm_get_chmap(snd_pcm_t *pcm);
657int snd_pcm_set_chmap(snd_pcm_t *pcm, const snd_pcm_chmap_t *map);
658
659const char *snd_pcm_chmap_type_name(enum snd_pcm_chmap_type val);
660const char *snd_pcm_chmap_name(enum snd_pcm_chmap_position val);
661const char *snd_pcm_chmap_long_name(enum snd_pcm_chmap_position val);
662int snd_pcm_chmap_print(const snd_pcm_chmap_t *map, size_t maxlen, char *buf);
663unsigned int snd_pcm_chmap_from_string(const char *str);
664 snd_pcm_chmap_t *snd_pcm_chmap_parse_string(const char *str);
665
666//int snd_pcm_mixer_element(snd_pcm_t *pcm, snd_mixer_t *mixer, snd_mixer_elem_t **elem);
667
668/*
669 * application helpers - these functions are implemented on top
670 * of the basic API
671 */
672
673int snd_pcm_recover(snd_pcm_t *pcm, int err, int silent);
674int snd_pcm_set_params(snd_pcm_t *pcm,
675 snd_pcm_format_t format,
676 snd_pcm_access_t access,
677 unsigned int channels,
678 unsigned int rate,
679 int soft_resample,
680 unsigned int latency);
681int snd_pcm_get_params(snd_pcm_t *pcm,
682 snd_pcm_uframes_t *buffer_size,
683 snd_pcm_uframes_t *period_size);
684
694size_t snd_pcm_info_sizeof(void);
699#define snd_pcm_info_alloca(ptr) __snd_alloca(ptr, snd_pcm_info)
700int snd_pcm_info_malloc(snd_pcm_info_t **ptr);
701void snd_pcm_info_free(snd_pcm_info_t *obj);
702void snd_pcm_info_copy(snd_pcm_info_t *dst, const snd_pcm_info_t *src);
703unsigned int snd_pcm_info_get_device(const snd_pcm_info_t *obj);
704unsigned int snd_pcm_info_get_subdevice(const snd_pcm_info_t *obj);
705 snd_pcm_stream_t snd_pcm_info_get_stream(const snd_pcm_info_t *obj);
706int snd_pcm_info_get_card(const snd_pcm_info_t *obj);
707const char *snd_pcm_info_get_id(const snd_pcm_info_t *obj);
708const char *snd_pcm_info_get_name(const snd_pcm_info_t *obj);
709const char *snd_pcm_info_get_subdevice_name(const snd_pcm_info_t *obj);
710 snd_pcm_class_t snd_pcm_info_get_class(const snd_pcm_info_t *obj);
711 snd_pcm_subclass_t snd_pcm_info_get_subclass(const snd_pcm_info_t *obj);
712unsigned int snd_pcm_info_get_subdevices_count(const snd_pcm_info_t *obj);
713unsigned int snd_pcm_info_get_subdevices_avail(const snd_pcm_info_t *obj);
714 snd_pcm_sync_id_t snd_pcm_info_get_sync(const snd_pcm_info_t *obj);
715void snd_pcm_info_set_device(snd_pcm_info_t *obj, unsigned int val);
716void snd_pcm_info_set_subdevice(snd_pcm_info_t *obj, unsigned int val);
717void snd_pcm_info_set_stream(snd_pcm_info_t *obj, snd_pcm_stream_t val);
718
728int snd_pcm_hw_params_any(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
729
730int snd_pcm_hw_params_can_mmap_sample_resolution(const snd_pcm_hw_params_t *params);
731int snd_pcm_hw_params_is_double(const snd_pcm_hw_params_t *params);
732int snd_pcm_hw_params_is_batch(const snd_pcm_hw_params_t *params);
733int snd_pcm_hw_params_is_block_transfer(const snd_pcm_hw_params_t *params);
734int snd_pcm_hw_params_is_monotonic(const snd_pcm_hw_params_t *params);
735int snd_pcm_hw_params_can_overrange(const snd_pcm_hw_params_t *params);
736int snd_pcm_hw_params_can_pause(const snd_pcm_hw_params_t *params);
737int snd_pcm_hw_params_can_resume(const snd_pcm_hw_params_t *params);
738int snd_pcm_hw_params_is_half_duplex(const snd_pcm_hw_params_t *params);
739int snd_pcm_hw_params_is_joint_duplex(const snd_pcm_hw_params_t *params);
740int snd_pcm_hw_params_can_sync_start(const snd_pcm_hw_params_t *params);
741int snd_pcm_hw_params_can_disable_period_wakeup(const snd_pcm_hw_params_t *params);
742int snd_pcm_hw_params_is_perfect_drain(const snd_pcm_hw_params_t *params);
743int snd_pcm_hw_params_supports_audio_wallclock_ts(const snd_pcm_hw_params_t *params); /* deprecated, use audio_ts_type */
744int snd_pcm_hw_params_supports_audio_ts_type(const snd_pcm_hw_params_t *params, int type);
745int snd_pcm_hw_params_get_rate_numden(const snd_pcm_hw_params_t *params,
746 unsigned int *rate_num,
747 unsigned int *rate_den);
748int snd_pcm_hw_params_get_sbits(const snd_pcm_hw_params_t *params);
749int snd_pcm_hw_params_get_fifo_size(const snd_pcm_hw_params_t *params);
750
751#if 0
752typedef struct _snd_pcm_hw_strategy snd_pcm_hw_strategy_t;
753
754/* choices need to be sorted on ascending badness */
755typedef struct _snd_pcm_hw_strategy_simple_choices_list {
756 unsigned int value;
757 unsigned int badness;
758} snd_pcm_hw_strategy_simple_choices_list_t;
759
760int snd_pcm_hw_params_strategy(snd_pcm_t *pcm, snd_pcm_hw_params_t *params,
761 const snd_pcm_hw_strategy_t *strategy,
762 unsigned int badness_min,
763 unsigned int badness_max);
764
765void snd_pcm_hw_strategy_free(snd_pcm_hw_strategy_t *strategy);
766int snd_pcm_hw_strategy_simple(snd_pcm_hw_strategy_t **strategyp,
767 unsigned int badness_min,
768 unsigned int badness_max);
769int snd_pcm_hw_params_try_explain_failure(snd_pcm_t *pcm,
770 snd_pcm_hw_params_t *fail,
771 snd_pcm_hw_params_t *success,
772 unsigned int depth,
773 snd_output_t *out);
774
775#endif
776
777size_t snd_pcm_hw_params_sizeof(void);
782#define snd_pcm_hw_params_alloca(ptr) __snd_alloca(ptr, snd_pcm_hw_params)
783int snd_pcm_hw_params_malloc(snd_pcm_hw_params_t **ptr);
784void snd_pcm_hw_params_free(snd_pcm_hw_params_t *obj);
785void snd_pcm_hw_params_copy(snd_pcm_hw_params_t *dst, const snd_pcm_hw_params_t *src);
786
787#if !defined(ALSA_LIBRARY_BUILD) && !defined(ALSA_PCM_OLD_HW_PARAMS_API)
788
789int snd_pcm_hw_params_get_access(const snd_pcm_hw_params_t *params, snd_pcm_access_t *_access);
790int snd_pcm_hw_params_test_access(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t _access);
791int snd_pcm_hw_params_set_access(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t _access);
792int snd_pcm_hw_params_set_access_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t *_access);
793int snd_pcm_hw_params_set_access_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t *_access);
794int snd_pcm_hw_params_set_access_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_mask_t *mask);
795int snd_pcm_hw_params_get_access_mask(snd_pcm_hw_params_t *params, snd_pcm_access_mask_t *mask);
796
797int snd_pcm_hw_params_get_format(const snd_pcm_hw_params_t *params, snd_pcm_format_t *val);
798int snd_pcm_hw_params_test_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val);
799int snd_pcm_hw_params_set_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val);
800int snd_pcm_hw_params_set_format_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t *format);
801int snd_pcm_hw_params_set_format_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t *format);
802int snd_pcm_hw_params_set_format_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_mask_t *mask);
803void snd_pcm_hw_params_get_format_mask(snd_pcm_hw_params_t *params, snd_pcm_format_mask_t *mask);
804
805int snd_pcm_hw_params_get_subformat(const snd_pcm_hw_params_t *params, snd_pcm_subformat_t *subformat);
806int snd_pcm_hw_params_test_subformat(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t subformat);
807int snd_pcm_hw_params_set_subformat(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t subformat);
808int snd_pcm_hw_params_set_subformat_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t *subformat);
809int snd_pcm_hw_params_set_subformat_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t *subformat);
810int snd_pcm_hw_params_set_subformat_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_mask_t *mask);
811void snd_pcm_hw_params_get_subformat_mask(snd_pcm_hw_params_t *params, snd_pcm_subformat_mask_t *mask);
812
813int snd_pcm_hw_params_get_channels(const snd_pcm_hw_params_t *params, unsigned int *val);
814int snd_pcm_hw_params_get_channels_min(const snd_pcm_hw_params_t *params, unsigned int *val);
815int snd_pcm_hw_params_get_channels_max(const snd_pcm_hw_params_t *params, unsigned int *val);
816int snd_pcm_hw_params_test_channels(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val);
817int snd_pcm_hw_params_set_channels(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val);
818int snd_pcm_hw_params_set_channels_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val);
819int snd_pcm_hw_params_set_channels_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val);
820int snd_pcm_hw_params_set_channels_minmax(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *min, unsigned int *max);
821int snd_pcm_hw_params_set_channels_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val);
822int snd_pcm_hw_params_set_channels_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val);
823int snd_pcm_hw_params_set_channels_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val);
824
825int snd_pcm_hw_params_get_rate(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
826int snd_pcm_hw_params_get_rate_min(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
827int snd_pcm_hw_params_get_rate_max(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
828int snd_pcm_hw_params_test_rate(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
829int snd_pcm_hw_params_set_rate(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
830int snd_pcm_hw_params_set_rate_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
831int snd_pcm_hw_params_set_rate_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
832int 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);
833int snd_pcm_hw_params_set_rate_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
834int snd_pcm_hw_params_set_rate_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
835int snd_pcm_hw_params_set_rate_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
836int snd_pcm_hw_params_set_rate_resample(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val);
837int snd_pcm_hw_params_get_rate_resample(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val);
838int snd_pcm_hw_params_set_export_buffer(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val);
839int snd_pcm_hw_params_get_export_buffer(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val);
840int snd_pcm_hw_params_set_period_wakeup(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val);
841int snd_pcm_hw_params_get_period_wakeup(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val);
842int snd_pcm_hw_params_set_drain_silence(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val);
843int snd_pcm_hw_params_get_drain_silence(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val);
844
845int snd_pcm_hw_params_get_period_time(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
846int snd_pcm_hw_params_get_period_time_min(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
847int snd_pcm_hw_params_get_period_time_max(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
848int snd_pcm_hw_params_test_period_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
849int snd_pcm_hw_params_set_period_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
850int snd_pcm_hw_params_set_period_time_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
851int snd_pcm_hw_params_set_period_time_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
852int 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);
853int snd_pcm_hw_params_set_period_time_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
854int snd_pcm_hw_params_set_period_time_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
855int snd_pcm_hw_params_set_period_time_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
856
857int snd_pcm_hw_params_get_period_size(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *frames, int *dir);
858int snd_pcm_hw_params_get_period_size_min(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *frames, int *dir);
859int snd_pcm_hw_params_get_period_size_max(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *frames, int *dir);
860int snd_pcm_hw_params_test_period_size(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t val, int dir);
861int snd_pcm_hw_params_set_period_size(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t val, int dir);
862int 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);
863int 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);
864int 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);
865int 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);
866int 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);
867int 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);
868int snd_pcm_hw_params_set_period_size_integer(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
869
870int snd_pcm_hw_params_get_periods(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
871int snd_pcm_hw_params_get_periods_min(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
872int snd_pcm_hw_params_get_periods_max(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
873int snd_pcm_hw_params_test_periods(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
874int snd_pcm_hw_params_set_periods(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
875int snd_pcm_hw_params_set_periods_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
876int snd_pcm_hw_params_set_periods_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
877int 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);
878int snd_pcm_hw_params_set_periods_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
879int snd_pcm_hw_params_set_periods_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
880int snd_pcm_hw_params_set_periods_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
881int snd_pcm_hw_params_set_periods_integer(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
882
883int snd_pcm_hw_params_get_buffer_time(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
884int snd_pcm_hw_params_get_buffer_time_min(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
885int snd_pcm_hw_params_get_buffer_time_max(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
886int snd_pcm_hw_params_test_buffer_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
887int snd_pcm_hw_params_set_buffer_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir);
888int snd_pcm_hw_params_set_buffer_time_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
889int snd_pcm_hw_params_set_buffer_time_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
890int 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);
891int snd_pcm_hw_params_set_buffer_time_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
892int snd_pcm_hw_params_set_buffer_time_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
893int snd_pcm_hw_params_set_buffer_time_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir);
894
895int snd_pcm_hw_params_get_buffer_size(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
896int snd_pcm_hw_params_get_buffer_size_min(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
897int snd_pcm_hw_params_get_buffer_size_max(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
898int snd_pcm_hw_params_test_buffer_size(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t val);
899int snd_pcm_hw_params_set_buffer_size(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t val);
900int snd_pcm_hw_params_set_buffer_size_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
901int snd_pcm_hw_params_set_buffer_size_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
902int 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);
903int snd_pcm_hw_params_set_buffer_size_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
904int snd_pcm_hw_params_set_buffer_size_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
905int snd_pcm_hw_params_set_buffer_size_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
906
907#endif /* !ALSA_LIBRARY_BUILD && !ALSA_PCM_OLD_HW_PARAMS_API */
908
909int snd_pcm_hw_params_get_min_align(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val);
910
920size_t snd_pcm_sw_params_sizeof(void);
925#define snd_pcm_sw_params_alloca(ptr) __snd_alloca(ptr, snd_pcm_sw_params)
926int snd_pcm_sw_params_malloc(snd_pcm_sw_params_t **ptr);
927void snd_pcm_sw_params_free(snd_pcm_sw_params_t *obj);
928void snd_pcm_sw_params_copy(snd_pcm_sw_params_t *dst, const snd_pcm_sw_params_t *src);
929int snd_pcm_sw_params_get_boundary(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val);
930
931#if !defined(ALSA_LIBRARY_BUILD) && !defined(ALSA_PCM_OLD_SW_PARAMS_API)
932
933int snd_pcm_sw_params_set_tstamp_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_tstamp_t val);
934int snd_pcm_sw_params_get_tstamp_mode(const snd_pcm_sw_params_t *params, snd_pcm_tstamp_t *val);
935int snd_pcm_sw_params_set_tstamp_type(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_tstamp_type_t val);
936int snd_pcm_sw_params_get_tstamp_type(const snd_pcm_sw_params_t *params, snd_pcm_tstamp_type_t *val);
937int snd_pcm_sw_params_set_avail_min(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
938int snd_pcm_sw_params_get_avail_min(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val);
939int snd_pcm_sw_params_set_period_event(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, int val);
940int snd_pcm_sw_params_get_period_event(const snd_pcm_sw_params_t *params, int *val);
941int snd_pcm_sw_params_set_start_threshold(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
942int snd_pcm_sw_params_get_start_threshold(const snd_pcm_sw_params_t *paramsm, snd_pcm_uframes_t *val);
943int snd_pcm_sw_params_set_stop_threshold(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
944int snd_pcm_sw_params_get_stop_threshold(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val);
945int snd_pcm_sw_params_set_silence_threshold(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
946int snd_pcm_sw_params_get_silence_threshold(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val);
947int snd_pcm_sw_params_set_silence_size(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
948int snd_pcm_sw_params_get_silence_size(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val);
949
950#endif /* !ALSA_LIBRARY_BUILD && !ALSA_PCM_OLD_SW_PARAMS_API */
951
954/* include old API */
955#ifndef ALSA_LIBRARY_BUILD
956#if defined(ALSA_PCM_OLD_HW_PARAMS_API) || defined(ALSA_PCM_OLD_SW_PARAMS_API)
957#include "pcm_old.h"
958#endif
959#endif
960
968size_t snd_pcm_access_mask_sizeof(void);
973#define snd_pcm_access_mask_alloca(ptr) __snd_alloca(ptr, snd_pcm_access_mask)
974int snd_pcm_access_mask_malloc(snd_pcm_access_mask_t **ptr);
975void snd_pcm_access_mask_free(snd_pcm_access_mask_t *obj);
976void snd_pcm_access_mask_copy(snd_pcm_access_mask_t *dst, const snd_pcm_access_mask_t *src);
977void snd_pcm_access_mask_none(snd_pcm_access_mask_t *mask);
978void snd_pcm_access_mask_any(snd_pcm_access_mask_t *mask);
979int snd_pcm_access_mask_test(const snd_pcm_access_mask_t *mask, snd_pcm_access_t val);
980int snd_pcm_access_mask_empty(const snd_pcm_access_mask_t *mask);
981void snd_pcm_access_mask_set(snd_pcm_access_mask_t *mask, snd_pcm_access_t val);
982void snd_pcm_access_mask_reset(snd_pcm_access_mask_t *mask, snd_pcm_access_t val);
983
993size_t snd_pcm_format_mask_sizeof(void);
998#define snd_pcm_format_mask_alloca(ptr) __snd_alloca(ptr, snd_pcm_format_mask)
999int snd_pcm_format_mask_malloc(snd_pcm_format_mask_t **ptr);
1000void snd_pcm_format_mask_free(snd_pcm_format_mask_t *obj);
1001void snd_pcm_format_mask_copy(snd_pcm_format_mask_t *dst, const snd_pcm_format_mask_t *src);
1002void snd_pcm_format_mask_none(snd_pcm_format_mask_t *mask);
1003void snd_pcm_format_mask_any(snd_pcm_format_mask_t *mask);
1004int snd_pcm_format_mask_test(const snd_pcm_format_mask_t *mask, snd_pcm_format_t val);
1005int snd_pcm_format_mask_empty(const snd_pcm_format_mask_t *mask);
1006void snd_pcm_format_mask_set(snd_pcm_format_mask_t *mask, snd_pcm_format_t val);
1007void snd_pcm_format_mask_reset(snd_pcm_format_mask_t *mask, snd_pcm_format_t val);
1008
1018size_t snd_pcm_subformat_mask_sizeof(void);
1023#define snd_pcm_subformat_mask_alloca(ptr) __snd_alloca(ptr, snd_pcm_subformat_mask)
1024int snd_pcm_subformat_mask_malloc(snd_pcm_subformat_mask_t **ptr);
1025void snd_pcm_subformat_mask_free(snd_pcm_subformat_mask_t *obj);
1026void snd_pcm_subformat_mask_copy(snd_pcm_subformat_mask_t *dst, const snd_pcm_subformat_mask_t *src);
1027void snd_pcm_subformat_mask_none(snd_pcm_subformat_mask_t *mask);
1028void snd_pcm_subformat_mask_any(snd_pcm_subformat_mask_t *mask);
1029int snd_pcm_subformat_mask_test(const snd_pcm_subformat_mask_t *mask, snd_pcm_subformat_t val);
1030int snd_pcm_subformat_mask_empty(const snd_pcm_subformat_mask_t *mask);
1031void snd_pcm_subformat_mask_set(snd_pcm_subformat_mask_t *mask, snd_pcm_subformat_t val);
1032void snd_pcm_subformat_mask_reset(snd_pcm_subformat_mask_t *mask, snd_pcm_subformat_t val);
1033
1043size_t snd_pcm_status_sizeof(void);
1048#define snd_pcm_status_alloca(ptr) __snd_alloca(ptr, snd_pcm_status)
1049int snd_pcm_status_malloc(snd_pcm_status_t **ptr);
1050void snd_pcm_status_free(snd_pcm_status_t *obj);
1051void snd_pcm_status_copy(snd_pcm_status_t *dst, const snd_pcm_status_t *src);
1052 snd_pcm_state_t snd_pcm_status_get_state(const snd_pcm_status_t *obj);
1053void snd_pcm_status_get_trigger_tstamp(const snd_pcm_status_t *obj, snd_timestamp_t *ptr);
1054void snd_pcm_status_get_trigger_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr);
1055void snd_pcm_status_get_tstamp(const snd_pcm_status_t *obj, snd_timestamp_t *ptr);
1056void snd_pcm_status_get_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr);
1057void snd_pcm_status_get_audio_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr);
1058void snd_pcm_status_get_driver_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr);
1059void snd_pcm_status_get_audio_htstamp_report(const snd_pcm_status_t *obj,
1060 snd_pcm_audio_tstamp_report_t *audio_tstamp_report);
1061void snd_pcm_status_set_audio_htstamp_config(snd_pcm_status_t *obj,
1062 snd_pcm_audio_tstamp_config_t *audio_tstamp_config);
1063
1064static inline void snd_pcm_pack_audio_tstamp_config(unsigned int *data,
1065 snd_pcm_audio_tstamp_config_t *config)
1066{
1067 *data = config->report_delay;
1068 *data <<= 4;
1069 *data |= config->type_requested;
1070}
1071
1072static inline void snd_pcm_unpack_audio_tstamp_report(unsigned int data, unsigned int accuracy,
1073 snd_pcm_audio_tstamp_report_t *report)
1074{
1075 data >>= 16;
1076 report->valid = data & 1;
1077 report->actual_type = (data >> 1) & 0xF;
1078 report->accuracy_report = (data >> 5) & 1;
1079 report->accuracy = accuracy;
1080}
1081
1082 snd_pcm_sframes_t snd_pcm_status_get_delay(const snd_pcm_status_t *obj);
1083 snd_pcm_uframes_t snd_pcm_status_get_avail(const snd_pcm_status_t *obj);
1084 snd_pcm_uframes_t snd_pcm_status_get_avail_max(const snd_pcm_status_t *obj);
1085 snd_pcm_uframes_t snd_pcm_status_get_overrange(const snd_pcm_status_t *obj);
1086
1096const char *snd_pcm_type_name(snd_pcm_type_t type);
1097const char *snd_pcm_stream_name(const snd_pcm_stream_t stream);
1098const char *snd_pcm_access_name(const snd_pcm_access_t _access);
1099const char *snd_pcm_format_name(const snd_pcm_format_t format);
1100const char *snd_pcm_format_description(const snd_pcm_format_t format);
1101const char *snd_pcm_subformat_name(const snd_pcm_subformat_t subformat);
1102const char *snd_pcm_subformat_description(const snd_pcm_subformat_t subformat);
1103 snd_pcm_subformat_t snd_pcm_subformat_value(const char* name);
1104 snd_pcm_format_t snd_pcm_format_value(const char* name);
1105const char *snd_pcm_tstamp_mode_name(const snd_pcm_tstamp_t mode);
1106const char *snd_pcm_state_name(const snd_pcm_state_t state);
1107
1117int snd_pcm_dump(snd_pcm_t *pcm, snd_output_t *out);
1118int snd_pcm_dump_hw_setup(snd_pcm_t *pcm, snd_output_t *out);
1119int snd_pcm_dump_sw_setup(snd_pcm_t *pcm, snd_output_t *out);
1120int snd_pcm_dump_setup(snd_pcm_t *pcm, snd_output_t *out);
1121int snd_pcm_hw_params_dump(snd_pcm_hw_params_t *params, snd_output_t *out);
1122int snd_pcm_sw_params_dump(snd_pcm_sw_params_t *params, snd_output_t *out);
1123int snd_pcm_status_dump(snd_pcm_status_t *status, snd_output_t *out);
1124
1134int snd_pcm_mmap_begin(snd_pcm_t *pcm,
1135 const snd_pcm_channel_area_t **areas,
1136 snd_pcm_uframes_t *offset,
1137 snd_pcm_uframes_t *frames);
1138 snd_pcm_sframes_t snd_pcm_mmap_commit(snd_pcm_t *pcm,
1139 snd_pcm_uframes_t offset,
1140 snd_pcm_uframes_t frames);
1141 snd_pcm_sframes_t snd_pcm_mmap_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size);
1142 snd_pcm_sframes_t snd_pcm_mmap_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size);
1143 snd_pcm_sframes_t snd_pcm_mmap_writen(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size);
1144 snd_pcm_sframes_t snd_pcm_mmap_readn(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size);
1145
1155int snd_pcm_format_signed(snd_pcm_format_t format);
1156int snd_pcm_format_unsigned(snd_pcm_format_t format);
1157int snd_pcm_format_linear(snd_pcm_format_t format);
1158int snd_pcm_format_float(snd_pcm_format_t format);
1159int snd_pcm_format_little_endian(snd_pcm_format_t format);
1160int snd_pcm_format_big_endian(snd_pcm_format_t format);
1161int snd_pcm_format_cpu_endian(snd_pcm_format_t format);
1162int snd_pcm_format_width(snd_pcm_format_t format); /* in bits */
1163int snd_pcm_format_physical_width(snd_pcm_format_t format); /* in bits */
1164 snd_pcm_format_t snd_pcm_build_linear_format(int width, int pwidth, int unsignd, int big_endian);
1165ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples);
1166uint8_t snd_pcm_format_silence(snd_pcm_format_t format);
1167uint16_t snd_pcm_format_silence_16(snd_pcm_format_t format);
1168uint32_t snd_pcm_format_silence_32(snd_pcm_format_t format);
1169uint64_t snd_pcm_format_silence_64(snd_pcm_format_t format);
1170int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int samples);
1171
1172 snd_pcm_sframes_t snd_pcm_bytes_to_frames(snd_pcm_t *pcm, ssize_t bytes);
1173ssize_t snd_pcm_frames_to_bytes(snd_pcm_t *pcm, snd_pcm_sframes_t frames);
1174long snd_pcm_bytes_to_samples(snd_pcm_t *pcm, ssize_t bytes);
1175ssize_t snd_pcm_samples_to_bytes(snd_pcm_t *pcm, long samples);
1176
1177int snd_pcm_area_silence(const snd_pcm_channel_area_t *dst_channel, snd_pcm_uframes_t dst_offset,
1178 unsigned int samples, snd_pcm_format_t format);
1179int snd_pcm_areas_silence(const snd_pcm_channel_area_t *dst_channels, snd_pcm_uframes_t dst_offset,
1180 unsigned int channels, snd_pcm_uframes_t frames, snd_pcm_format_t format);
1181int snd_pcm_area_copy(const snd_pcm_channel_area_t *dst_channel, snd_pcm_uframes_t dst_offset,
1182 const snd_pcm_channel_area_t *src_channel, snd_pcm_uframes_t src_offset,
1183 unsigned int samples, snd_pcm_format_t format);
1184int snd_pcm_areas_copy(const snd_pcm_channel_area_t *dst_channels, snd_pcm_uframes_t dst_offset,
1185 const snd_pcm_channel_area_t *src_channels, snd_pcm_uframes_t src_offset,
1186 unsigned int channels, snd_pcm_uframes_t frames, snd_pcm_format_t format);
1187int snd_pcm_areas_copy_wrap(const snd_pcm_channel_area_t *dst_channels,
1188 snd_pcm_uframes_t dst_offset,
1189 const snd_pcm_uframes_t dst_size,
1190 const snd_pcm_channel_area_t *src_channels,
1191 snd_pcm_uframes_t src_offset,
1192 const snd_pcm_uframes_t src_size,
1193 const unsigned int channels,
1194 snd_pcm_uframes_t frames,
1195 const snd_pcm_format_t format);
1196
1204static inline void *snd_pcm_channel_area_addr(const snd_pcm_channel_area_t *area, snd_pcm_uframes_t offset)
1205{
1206 return (char *)area->addr + (area->first + area->step * offset) / 8;
1207}
1208
1215static inline unsigned int snd_pcm_channel_area_step(const snd_pcm_channel_area_t *area)
1216{
1217 return area->step / 8;
1218}
1219
1230 typedef enum _snd_pcm_hook_type {
1231 SND_PCM_HOOK_TYPE_HW_PARAMS = 0,
1232 SND_PCM_HOOK_TYPE_HW_FREE,
1233 SND_PCM_HOOK_TYPE_CLOSE,
1234 SND_PCM_HOOK_TYPE_LAST = SND_PCM_HOOK_TYPE_CLOSE
1235} snd_pcm_hook_type_t;
1236
1238 typedef struct _snd_pcm_hook snd_pcm_hook_t;
1240 typedef int (*snd_pcm_hook_func_t)(snd_pcm_hook_t *hook);
1241 snd_pcm_t *snd_pcm_hook_get_pcm(snd_pcm_hook_t *hook);
1242void *snd_pcm_hook_get_private(snd_pcm_hook_t *hook);
1243void snd_pcm_hook_set_private(snd_pcm_hook_t *hook, void *private_data);
1244int snd_pcm_hook_add(snd_pcm_hook_t **hookp, snd_pcm_t *pcm,
1245 snd_pcm_hook_type_t type,
1246 snd_pcm_hook_func_t func, void *private_data);
1247int snd_pcm_hook_remove(snd_pcm_hook_t *hook);
1248
1259 typedef struct _snd_pcm_scope_ops {
1263 int (*enable)(snd_pcm_scope_t *scope);
1267 void (*disable)(snd_pcm_scope_t *scope);
1271 void (*start)(snd_pcm_scope_t *scope);
1275 void (*stop)(snd_pcm_scope_t *scope);
1279 void (*update)(snd_pcm_scope_t *scope);
1283 void (*reset)(snd_pcm_scope_t *scope);
1287 void (*close)(snd_pcm_scope_t *scope);
1288} snd_pcm_scope_ops_t;
1289
1290 snd_pcm_uframes_t snd_pcm_meter_get_bufsize(snd_pcm_t *pcm);
1291unsigned int snd_pcm_meter_get_channels(snd_pcm_t *pcm);
1292unsigned int snd_pcm_meter_get_rate(snd_pcm_t *pcm);
1293 snd_pcm_uframes_t snd_pcm_meter_get_now(snd_pcm_t *pcm);
1294 snd_pcm_uframes_t snd_pcm_meter_get_boundary(snd_pcm_t *pcm);
1295int snd_pcm_meter_add_scope(snd_pcm_t *pcm, snd_pcm_scope_t *scope);
1296 snd_pcm_scope_t *snd_pcm_meter_search_scope(snd_pcm_t *pcm, const char *name);
1297int snd_pcm_scope_malloc(snd_pcm_scope_t **ptr);
1298void snd_pcm_scope_set_ops(snd_pcm_scope_t *scope,
1299 const snd_pcm_scope_ops_t *val);
1300void snd_pcm_scope_set_name(snd_pcm_scope_t *scope, const char *val);
1301const char *snd_pcm_scope_get_name(snd_pcm_scope_t *scope);
1302void *snd_pcm_scope_get_callback_private(snd_pcm_scope_t *scope);
1303void snd_pcm_scope_set_callback_private(snd_pcm_scope_t *scope, void *val);
1304int snd_pcm_scope_s16_open(snd_pcm_t *pcm, const char *name,
1305 snd_pcm_scope_t **scopep);
1306int16_t *snd_pcm_scope_s16_get_channel_buffer(snd_pcm_scope_t *scope,
1307 unsigned int channel);
1308
1319 typedef enum _snd_spcm_latency {
1322 SND_SPCM_LATENCY_STANDARD = 0,
1325 SND_SPCM_LATENCY_MEDIUM,
1328 SND_SPCM_LATENCY_REALTIME
1329} snd_spcm_latency_t;
1330
1332 typedef enum _snd_spcm_xrun_type {
1334 SND_SPCM_XRUN_IGNORE = 0,
1336 SND_SPCM_XRUN_STOP
1337} snd_spcm_xrun_type_t;
1338
1340 typedef enum _snd_spcm_duplex_type {
1342 SND_SPCM_DUPLEX_LIBERAL = 0,
1344 SND_SPCM_DUPLEX_PEDANTIC
1345} snd_spcm_duplex_type_t;
1346
1347int snd_spcm_init(snd_pcm_t *pcm,
1348 unsigned int rate,
1349 unsigned int channels,
1350 snd_pcm_format_t format,
1351 snd_pcm_subformat_t subformat,
1352 snd_spcm_latency_t latency,
1353 snd_pcm_access_t _access,
1354 snd_spcm_xrun_type_t xrun_type);
1355
1356int snd_spcm_init_duplex(snd_pcm_t *playback_pcm,
1357 snd_pcm_t *capture_pcm,
1358 unsigned int rate,
1359 unsigned int channels,
1360 snd_pcm_format_t format,
1361 snd_pcm_subformat_t subformat,
1362 snd_spcm_latency_t latency,
1363 snd_pcm_access_t _access,
1364 snd_spcm_xrun_type_t xrun_type,
1365 snd_spcm_duplex_type_t duplex_type);
1366
1367int snd_spcm_init_get_params(snd_pcm_t *pcm,
1368 unsigned int *rate,
1369 snd_pcm_uframes_t *buffer_size,
1370 snd_pcm_uframes_t *period_size);
1371
1381/* Deprecated functions, for compatibility */
1382const char *snd_pcm_start_mode_name(snd_pcm_start_t mode) __attribute__((deprecated));
1383const char *snd_pcm_xrun_mode_name(snd_pcm_xrun_t mode) __attribute__((deprecated));
1384int snd_pcm_sw_params_set_start_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_start_t val) __attribute__((deprecated));
1385 snd_pcm_start_t snd_pcm_sw_params_get_start_mode(const snd_pcm_sw_params_t *params) __attribute__((deprecated));
1386int snd_pcm_sw_params_set_xrun_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_xrun_t val) __attribute__((deprecated));
1387 snd_pcm_xrun_t snd_pcm_sw_params_get_xrun_mode(const snd_pcm_sw_params_t *params) __attribute__((deprecated));
1388#if !defined(ALSA_LIBRARY_BUILD) && !defined(ALSA_PCM_OLD_SW_PARAMS_API)
1389int snd_pcm_sw_params_set_xfer_align(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val) __attribute__((deprecated));
1390int snd_pcm_sw_params_get_xfer_align(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val) __attribute__((deprecated));
1391int snd_pcm_sw_params_set_sleep_min(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, unsigned int val) __attribute__((deprecated));
1392int snd_pcm_sw_params_get_sleep_min(const snd_pcm_sw_params_t *params, unsigned int *val) __attribute__((deprecated));
1393#endif /* !ALSA_LIBRARY_BUILD && !ALSA_PCM_OLD_SW_PARAMS_API */
1394#if !defined(ALSA_LIBRARY_BUILD) && !defined(ALSA_PCM_OLD_HW_PARAMS_API)
1395int snd_pcm_hw_params_get_tick_time(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir) __attribute__((deprecated));
1396int snd_pcm_hw_params_get_tick_time_min(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir) __attribute__((deprecated));
1397int snd_pcm_hw_params_get_tick_time_max(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir) __attribute__((deprecated));
1398int snd_pcm_hw_params_test_tick_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir) __attribute__((deprecated));
1399int snd_pcm_hw_params_set_tick_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir) __attribute__((deprecated));
1400int snd_pcm_hw_params_set_tick_time_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir) __attribute__((deprecated));
1401int snd_pcm_hw_params_set_tick_time_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir) __attribute__((deprecated));
1402int 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) __attribute__((deprecated));
1403int snd_pcm_hw_params_set_tick_time_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir) __attribute__((deprecated));
1404int snd_pcm_hw_params_set_tick_time_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir) __attribute__((deprecated));
1405int snd_pcm_hw_params_set_tick_time_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir) __attribute__((deprecated));
1406#endif /* !ALSA_LIBRARY_BUILD && !ALSA_PCM_OLD_HW_PARAMS_API */
1407
1410#ifdef __cplusplus
1411}
1412#endif
1413
1414#endif /* __ALSA_PCM_H */
snd_config_t
struct _snd_config snd_config_t
Internal structure for a configuration node object.
Definition conf.h:69
snd_htimestamp_t
struct timespec snd_htimestamp_t
Definition global.h:154
snd_async_handler_t
struct _snd_async_handler snd_async_handler_t
Internal structure for an async notification client handler.
Definition global.h:115
snd_timestamp_t
struct timeval snd_timestamp_t
Definition global.h:152
snd_async_callback_t
void(* snd_async_callback_t)(snd_async_handler_t *handler)
Async notification callback.
Definition global.h:122
snd_output_t
struct _snd_output snd_output_t
Internal structure for an output object.
Definition output.h:56
snd_pcm_access_mask_empty
int snd_pcm_access_mask_empty(const snd_pcm_access_mask_t *mask)
test, if given a snd_pcm_access_mask_t is empty
Definition pcm.c:4047
snd_pcm_access_mask_reset
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
Definition pcm.c:4067
snd_pcm_access_mask_test
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
Definition pcm.c:4036
snd_pcm_access_mask_copy
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
Definition pcm.c:4007
snd_pcm_access_mask_any
void snd_pcm_access_mask_any(snd_pcm_access_mask_t *mask)
set all bits in a snd_pcm_access_mask_t
Definition pcm.c:4026
snd_pcm_access_mask_sizeof
size_t snd_pcm_access_mask_sizeof(void)
get size of snd_pcm_access_mask_t
Definition pcm.c:3974
snd_pcm_access_mask_free
void snd_pcm_access_mask_free(snd_pcm_access_mask_t *obj)
frees a previously allocated snd_pcm_access_mask_t
Definition pcm.c:3997
snd_pcm_access_mask_none
void snd_pcm_access_mask_none(snd_pcm_access_mask_t *mask)
reset all bits in a snd_pcm_access_mask_t
Definition pcm.c:4017
snd_pcm_access_mask_set
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
Definition pcm.c:4057
snd_pcm_access_mask_malloc
int snd_pcm_access_mask_malloc(snd_pcm_access_mask_t **ptr)
allocate an empty snd_pcm_access_mask_t using standard malloc
Definition pcm.c:3984
snd_pcm_sw_params_get_sleep_min
int snd_pcm_sw_params_get_sleep_min(const snd_pcm_sw_params_t *params, unsigned int *val)
(DEPRECATED) Get minimum numbers of ticks to sleep from a software configuration container
Definition pcm.c:6641
snd_pcm_hw_params_set_tick_time_max
int snd_pcm_hw_params_set_tick_time_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
(DEPRECATED) Restrict a configuration space with a maximum tick time
Definition pcm.c:6230
snd_pcm_hw_params_set_tick_time_near
int snd_pcm_hw_params_set_tick_time_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
(DEPRECATED) Restrict a configuration space to have tick time nearest to a target
Definition pcm.c:6265
snd_pcm_xrun_mode_name
const char * snd_pcm_xrun_mode_name(snd_pcm_xrun_t mode)
(DEPRECATED) get name of PCM xrun mode setting
Definition pcm.c:2268
snd_pcm_sw_params_get_xrun_mode
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
Definition pcm.c:6535
snd_pcm_sw_params_set_start_mode
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
Definition pcm.c:6461
snd_pcm_sw_params_get_start_mode
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
Definition pcm.c:6487
snd_pcm_hw_params_get_tick_time
int snd_pcm_hw_params_get_tick_time(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
(DEPRECATED) Extract tick time from a configuration space
Definition pcm.c:6130
snd_pcm_hw_params_set_tick_time_last
int snd_pcm_hw_params_set_tick_time_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
(DEPRECATED) Restrict a configuration space to contain only its maximum tick time
Definition pcm.c:6303
snd_pcm_sw_params_set_xrun_mode
int snd_pcm_sw_params_set_xrun_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_xrun_t val)
(DEPRECATED) Set xrun mode inside a software configuration container
Definition pcm.c:6508
snd_pcm_start_mode_name
const char * snd_pcm_start_mode_name(snd_pcm_start_t mode)
(DEPRECATED) get name of PCM start mode setting
Definition pcm.c:2252
snd_pcm_hw_params_get_tick_time_min
int snd_pcm_hw_params_get_tick_time_min(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
(DEPRECATED) Extract minimum tick time from a configuration space
Definition pcm.c:6149
snd_pcm_hw_params_set_tick_time_min
int snd_pcm_hw_params_set_tick_time_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
(DEPRECATED) Restrict a configuration space with a minimum tick time
Definition pcm.c:6215
snd_pcm_hw_params_set_tick_time_first
int snd_pcm_hw_params_set_tick_time_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
(DEPRECATED) Restrict a configuration space to contain only its minimum tick time
Definition pcm.c:6284
snd_pcm_hw_params_get_tick_time_max
int snd_pcm_hw_params_get_tick_time_max(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
(DEPRECATED) Extract maximum tick time from a configuration space
Definition pcm.c:6168
snd_pcm_sw_params_set_xfer_align
int snd_pcm_sw_params_set_xfer_align(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)
(DEPRECATED) Set xfer align inside a software configuration container
Definition pcm.c:6738
snd_pcm_hw_params_set_tick_time_minmax
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)
(DEPRECATED) Restrict a configuration space to have tick times in a given range
Definition pcm.c:6247
snd_pcm_hw_params_set_tick_time
int snd_pcm_hw_params_set_tick_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir)
(DEPRECATED) Restrict a configuration space to contain only one tick time
Definition pcm.c:6200
snd_pcm_sw_params_set_sleep_min
int snd_pcm_sw_params_set_sleep_min(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, unsigned int val)
(DEPRECATED) Set minimum number of ticks to sleep inside a software configuration container
Definition pcm.c:6626
snd_pcm_hw_params_test_tick_time
int snd_pcm_hw_params_test_tick_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir)
(DEPRECATED) Verify if a tick time is available inside a configuration space for a PCM
Definition pcm.c:6185
snd_pcm_sw_params_get_xfer_align
int snd_pcm_sw_params_get_xfer_align(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val)
(DEPRECATED) Get xfer align from a software configuration container
Definition pcm.c:6753
snd_pcm_access_name
const char * snd_pcm_access_name(const snd_pcm_access_t _access)
get name of PCM access type
Definition pcm.c:2141
snd_pcm_format_name
const char * snd_pcm_format_name(const snd_pcm_format_t format)
get name of PCM sample format
Definition pcm.c:2153
snd_pcm_format_description
const char * snd_pcm_format_description(const snd_pcm_format_t format)
get description of PCM sample format
Definition pcm.c:2165
snd_pcm_format_value
snd_pcm_format_t snd_pcm_format_value(const char *name)
get PCM sample format from name
Definition pcm.c:2177
snd_pcm_subformat_value
snd_pcm_subformat_t snd_pcm_subformat_value(const char *name)
get PCM sample subformat from name
Definition pcm.c:2228
snd_pcm_type_name
const char * snd_pcm_type_name(snd_pcm_type_t type)
get name of PCM type
Definition pcm.c:2323
snd_pcm_state_name
const char * snd_pcm_state_name(const snd_pcm_state_t state)
get name of PCM state
Definition pcm.c:2308
snd_pcm_tstamp_mode_name
const char * snd_pcm_tstamp_mode_name(const snd_pcm_tstamp_t mode)
get name of PCM tstamp mode setting
Definition pcm.c:2284
snd_pcm_stream_name
const char * snd_pcm_stream_name(const snd_pcm_stream_t stream)
get name of PCM stream type
Definition pcm.c:2129
snd_pcm_subformat_name
const char * snd_pcm_subformat_name(const snd_pcm_subformat_t subformat)
get name of PCM sample subformat
Definition pcm.c:2204
snd_pcm_subformat_description
const char * snd_pcm_subformat_description(const snd_pcm_subformat_t subformat)
get description of PCM sample subformat
Definition pcm.c:2216
snd_pcm_mmap_writen
snd_pcm_sframes_t snd_pcm_mmap_writen(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size)
Write non interleaved frames to a PCM using direct buffer (mmap)
Definition pcm_mmap.c:175
snd_pcm_mmap_readi
snd_pcm_sframes_t snd_pcm_mmap_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size)
Read interleaved frames from a PCM using direct buffer (mmap)
Definition pcm_mmap.c:200
snd_pcm_mmap_readn
snd_pcm_sframes_t snd_pcm_mmap_readn(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size)
Read non interleaved frames to a PCM using direct buffer (mmap)
Definition pcm_mmap.c:225
snd_pcm_mmap_writei
snd_pcm_sframes_t snd_pcm_mmap_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size)
Write interleaved frames to a PCM using direct buffer (mmap)
Definition pcm_mmap.c:150
snd_pcm_mmap_begin
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.
Definition pcm.c:7400
snd_pcm_mmap_commit
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.
Definition pcm.c:7513
snd_pcm_hw_params_dump
int snd_pcm_hw_params_dump(snd_pcm_hw_params_t *params, snd_output_t *out)
Dump a PCM hardware configuration space.
Definition pcm.c:3558
snd_pcm_dump_setup
int snd_pcm_dump_setup(snd_pcm_t *pcm, snd_output_t *out)
Dump current setup (hardware and software) for PCM.
Definition pcm.c:2395
snd_pcm_dump_hw_setup
int snd_pcm_dump_hw_setup(snd_pcm_t *pcm, snd_output_t *out)
Dump current hardware setup for PCM.
Definition pcm.c:2338
snd_pcm_dump_sw_setup
int snd_pcm_dump_sw_setup(snd_pcm_t *pcm, snd_output_t *out)
Dump current software setup for PCM.
Definition pcm.c:2368
snd_pcm_dump
int snd_pcm_dump(snd_pcm_t *pcm, snd_output_t *out)
Dump PCM info.
Definition pcm.c:2429
snd_pcm_sw_params_dump
int snd_pcm_sw_params_dump(snd_pcm_sw_params_t *params, snd_output_t *out)
Dump a software configuration.
Definition pcm.c:6384
snd_pcm_status_dump
int snd_pcm_status_dump(snd_pcm_status_t *status, snd_output_t *out)
Dump status.
Definition pcm.c:2408
snd_pcm_format_mask_set
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
Definition pcm.c:4159
snd_pcm_format_mask_free
void snd_pcm_format_mask_free(snd_pcm_format_mask_t *obj)
frees a previously allocated snd_pcm_format_mask_t
Definition pcm.c:4099
snd_pcm_format_mask_none
void snd_pcm_format_mask_none(snd_pcm_format_mask_t *mask)
reset all bits in a snd_pcm_format_mask_t
Definition pcm.c:4119
snd_pcm_format_mask_any
void snd_pcm_format_mask_any(snd_pcm_format_mask_t *mask)
set all bits in a snd_pcm_format_mask_t
Definition pcm.c:4128
snd_pcm_format_mask_copy
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
Definition pcm.c:4109
snd_pcm_format_mask_reset
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
Definition pcm.c:4169
snd_pcm_format_mask_empty
int snd_pcm_format_mask_empty(const snd_pcm_format_mask_t *mask)
test, if given a snd_pcm_format_mask_t is empty
Definition pcm.c:4149
snd_pcm_format_mask_malloc
int snd_pcm_format_mask_malloc(snd_pcm_format_mask_t **ptr)
allocate an empty snd_pcm_format_mask_t using standard malloc
Definition pcm.c:4086
snd_pcm_format_mask_test
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
Definition pcm.c:4138
snd_pcm_format_mask_sizeof
size_t snd_pcm_format_mask_sizeof(void)
get size of snd_pcm_format_mask_t
Definition pcm.c:4076
snd_pcm_hw_params_set_rate_minmax
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.
Definition pcm.c:4892
snd_pcm_hw_params_set_subformat
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.
Definition pcm.c:4551
snd_pcm_hw_params_sizeof
size_t snd_pcm_hw_params_sizeof(void)
get size of snd_pcm_hw_params_t
Definition pcm.c:4282
snd_pcm_hw_params_test_periods
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.
Definition pcm.c:5595
snd_pcm_hw_params_set_subformat_first
int 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.
Definition pcm.c:4566
snd_pcm_hw_params_get_fifo_size
int snd_pcm_hw_params_get_fifo_size(const snd_pcm_hw_params_t *params)
Get hardware FIFO size info from a configuration space.
Definition pcm.c:3941
snd_pcm_hw_params_set_periods_last
int 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.
Definition pcm.c:5713
snd_pcm_hw_params_set_period_size_integer
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.
Definition pcm.c:5525
snd_pcm_hw_params_set_channels_min
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.
Definition pcm.c:4687
snd_pcm_hw_params_set_access_last
int 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.
Definition pcm.c:4391
snd_pcm_hw_params_get_periods_min
int 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.
Definition pcm.c:5561
snd_pcm_hw_params_get_buffer_size_min
int 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.
Definition pcm.c:5948
snd_pcm_hw_params_get_drain_silence
int snd_pcm_hw_params_get_drain_silence(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val)
Extract drain with the filling of silence samples from a configuration space.
Definition pcm.c:5099
snd_pcm_hw_params_get_access_mask
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.
Definition pcm.c:4414
snd_pcm_hw_params_set_channels_minmax
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.
Definition pcm.c:4712
snd_pcm_hw_params_get_min_align
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.
Definition pcm.c:6315
snd_pcm_hw_params_set_rate
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.
Definition pcm.c:4845
snd_pcm_hw_params_set_buffer_time_min
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.
Definition pcm.c:5825
snd_pcm_hw_params_set_buffer_size_near
int 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.
Definition pcm.c:6067
snd_pcm_hw_params_set_export_buffer
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 to be accessible from outside.
Definition pcm.c:4993
snd_pcm_hw_params_set_period_time_last
int 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.
Definition pcm.c:5287
snd_pcm_hw_params_set_period_time_min
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.
Definition pcm.c:5201
snd_pcm_hw_params_set_periods_near
int 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.
Definition pcm.c:5675
snd_pcm_hw_params_set_access_first
int 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.
Definition pcm.c:4375
snd_pcm_hw_params_set_format_mask
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.
Definition pcm.c:4501
snd_pcm_hw_params_set_period_size_minmax
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.
Definition pcm.c:5440
snd_pcm_hw_params_is_batch
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.
Definition pcm.c:3618
snd_pcm_hw_params_set_rate_near
int 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.
Definition pcm.c:4910
snd_pcm_hw_params_set_channels
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.
Definition pcm.c:4675
snd_pcm_hw_params_set_buffer_time_near
int 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.
Definition pcm.c:5875
snd_pcm_hw_params_is_double
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.
Definition pcm.c:3598
snd_pcm_hw_params_get_buffer_size_max
int 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.
Definition pcm.c:5969
snd_pcm_hw_params_test_buffer_size
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.
Definition pcm.c:5988
snd_pcm_hw_params_set_subformat_mask
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.
Definition pcm.c:4595
snd_pcm_hw_params_get_period_size_min
int snd_pcm_hw_params_get_period_size_min(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *frames, int *dir)
Extract minimum period size from a configuration space.
Definition pcm.c:5328
snd_pcm_hw_params_get_period_wakeup
int snd_pcm_hw_params_get_period_wakeup(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val)
Extract period wakeup flag from a configuration space.
Definition pcm.c:5062
snd_pcm_hw_params_get_rate
int snd_pcm_hw_params_get_rate(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
Extract rate from a configuration space.
Definition pcm.c:4778
snd_pcm_hw_params_get_format_mask
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.
Definition pcm.c:4511
snd_pcm_hw_params_set_periods
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.
Definition pcm.c:5610
snd_pcm_hw_params_set_period_time_first
int 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.
Definition pcm.c:5270
snd_pcm_hw_params_set_format_last
int 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.
Definition pcm.c:4488
snd_pcm_hw_params_set_drain_silence
int snd_pcm_hw_params_set_drain_silence(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val)
Restrict a configuration space to fill the end of playback stream with silence when drain() is invoke...
Definition pcm.c:5081
snd_pcm_hw_params_set_access
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.
Definition pcm.c:4360
snd_pcm_hw_params_can_mmap_sample_resolution
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.
Definition pcm.c:3578
snd_pcm_hw_params_set_channels_last
int 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.
Definition pcm.c:4759
snd_pcm_hw_params_get_rate_numden
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.
Definition pcm.c:3891
snd_pcm_hw_params_set_period_size_min
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.
Definition pcm.c:5400
snd_pcm_hw_params_set_channels_near
int 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.
Definition pcm.c:4727
snd_pcm_hw_params_set_rate_last
int 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.
Definition pcm.c:4948
snd_pcm_hw_params_test_rate
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.
Definition pcm.c:4830
snd_pcm_hw_params_set_format
int snd_pcm_hw_params_set_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val)
Restrict a configuration space to contain only one format.
Definition pcm.c:4457
snd_pcm_hw_params_get_periods_max
int 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.
Definition pcm.c:5579
snd_pcm_hw_params_set_periods_max
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.
Definition pcm.c:5640
snd_pcm_hw_params_test_format
int snd_pcm_hw_params_test_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val)
Verify if a format is available inside a configuration space for a PCM.
Definition pcm.c:4445
snd_pcm_hw_params_get_format
int snd_pcm_hw_params_get_format(const snd_pcm_hw_params_t *params, snd_pcm_format_t *val)
Extract format from a configuration space.
Definition pcm.c:4432
snd_pcm_hw_params_get_rate_max
int 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.
Definition pcm.c:4814
snd_pcm_hw_params_get_buffer_time_max
int 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.
Definition pcm.c:5779
snd_pcm_hw_params_set_buffer_time_first
int 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.
Definition pcm.c:5894
snd_pcm_hw_params_can_resume
int snd_pcm_hw_params_can_resume(const snd_pcm_hw_params_t *params)
Check if hardware supports resume.
Definition pcm.c:3718
snd_pcm_hw_params_any
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.
Definition pcm.c:3964
snd_pcm_hw_params_malloc
int snd_pcm_hw_params_malloc(snd_pcm_hw_params_t **ptr)
allocate an invalid snd_pcm_hw_params_t using standard malloc
Definition pcm.c:4292
snd_pcm_hw_params_get_period_time
int 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.
Definition pcm.c:5118
snd_pcm_hw_params_get_periods
int snd_pcm_hw_params_get_periods(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir)
Extract periods from a configuration space.
Definition pcm.c:5543
snd_pcm_hw_params_set_channels_max
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.
Definition pcm.c:4699
snd_pcm_hw_params_get_period_time_max
int 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.
Definition pcm.c:5154
snd_pcm_hw_params_get_access
int 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.
Definition pcm.c:4331
snd_pcm_hw_params_set_format_first
int 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.
Definition pcm.c:4472
snd_pcm_hw_params_get_subformat
int snd_pcm_hw_params_get_subformat(const snd_pcm_hw_params_t *params, snd_pcm_subformat_t *subformat)
Extract subformat from a configuration space.
Definition pcm.c:4526
snd_pcm_hw_params_is_monotonic
int snd_pcm_hw_params_is_monotonic(const snd_pcm_hw_params_t *params)
Check if timestamps are monotonic for given configuration.
Definition pcm.c:3658
snd_pcm_hw_params_set_buffer_size
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.
Definition pcm.c:6002
snd_pcm_hw_params_set_rate_resample
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.
Definition pcm.c:4961
snd_pcm_hw_params_set_buffer_time_minmax
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.
Definition pcm.c:5857
snd_pcm_hw_params_set_rate_max
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.
Definition pcm.c:4875
snd_pcm_hw_params_set_period_size
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.
Definition pcm.c:5385
snd_pcm_hw_params_set_rate_min
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.
Definition pcm.c:4860
snd_pcm_hw_params_is_perfect_drain
int snd_pcm_hw_params_is_perfect_drain(const snd_pcm_hw_params_t *params)
Check if hardware is capable of perfect drain.
Definition pcm.c:3817
snd_pcm_hw_params_get_sbits
int snd_pcm_hw_params_get_sbits(const snd_pcm_hw_params_t *params)
Get sample resolution info from a configuration space.
Definition pcm.c:3922
snd_pcm_hw_params_free
void snd_pcm_hw_params_free(snd_pcm_hw_params_t *obj)
frees a previously allocated snd_pcm_hw_params_t
Definition pcm.c:4305
snd_pcm_hw_params_test_channels
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.
Definition pcm.c:4663
snd_pcm_hw_params_set_period_size_max
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.
Definition pcm.c:5419
snd_pcm_hw_params_set_period_size_near
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)
Restrict a configuration space to have period size nearest to a target.
Definition pcm.c:5463
snd_pcm_hw_params_get_channels_min
int 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.
Definition pcm.c:4635
snd_pcm_hw_params_set_period_time_minmax
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.
Definition pcm.c:5233
snd_pcm_hw_params_test_buffer_time
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.
Definition pcm.c:5795
snd_pcm_hw_params_copy
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
Definition pcm.c:4315
snd_pcm_hw_params_get_buffer_time_min
int 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.
Definition pcm.c:5761
snd_pcm_hw_params_supports_audio_ts_type
int snd_pcm_hw_params_supports_audio_ts_type(const snd_pcm_hw_params_t *params, int type)
Check if hardware supports type of audio timestamps.
Definition pcm.c:3855
snd_pcm_hw_params_set_period_time_near
int 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.
Definition pcm.c:5251
snd_pcm_hw_params_set_periods_min
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.
Definition pcm.c:5625
snd_pcm_hw_params_set_period_time
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.
Definition pcm.c:5185
snd_pcm_hw_params_set_periods_first
int 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.
Definition pcm.c:5694
snd_pcm_hw_params_can_pause
int snd_pcm_hw_params_can_pause(const snd_pcm_hw_params_t *params)
Check if hardware supports pause.
Definition pcm.c:3698
snd_pcm_hw_params_set_period_time_max
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.
Definition pcm.c:5216
snd_pcm_hw_params_get_subformat_mask
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.
Definition pcm.c:4605
snd_pcm_hw_params_set_subformat_last
int 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.
Definition pcm.c:4582
snd_pcm_hw_params_test_access
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.
Definition pcm.c:4348
snd_pcm_hw_params_get_period_size_max
int snd_pcm_hw_params_get_period_size_max(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *frames, int *dir)
Extract maximum period size from a configuration space.
Definition pcm.c:5350
snd_pcm_hw_params_get_buffer_size
int 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.
Definition pcm.c:5929
snd_pcm_hw_params_set_periods_integer
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.
Definition pcm.c:5725
snd_pcm_hw_params_set_buffer_time_max
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.
Definition pcm.c:5840
snd_pcm_hw_params_get_period_size
int snd_pcm_hw_params_get_period_size(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *frames, int *dir)
Extract period size from a configuration space.
Definition pcm.c:5306
snd_pcm_hw_params_is_half_duplex
int snd_pcm_hw_params_is_half_duplex(const snd_pcm_hw_params_t *params)
Check if hardware does half-duplex only.
Definition pcm.c:3738
snd_pcm_hw_params_test_period_size
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.
Definition pcm.c:5370
snd_pcm_hw_params_get_buffer_time
int 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.
Definition pcm.c:5743
snd_pcm_hw_params_set_rate_first
int 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.
Definition pcm.c:4929
snd_pcm_hw_params_set_period_wakeup
int snd_pcm_hw_params_set_period_wakeup(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val)
Restrict a configuration space to settings without period wakeups.
Definition pcm.c:5040
snd_pcm_hw_params_set_buffer_size_max
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.
Definition pcm.c:6030
snd_pcm_hw_params_is_block_transfer
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.
Definition pcm.c:3638
snd_pcm_hw_params_get_channels_max
int 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.
Definition pcm.c:4650
snd_pcm_hw_params_set_buffer_size_first
int 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.
Definition pcm.c:6087
snd_pcm_hw_params_get_rate_resample
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.
Definition pcm.c:4979
snd_pcm_hw_params_set_buffer_time
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.
Definition pcm.c:5810
snd_pcm_hw_params_can_overrange
int snd_pcm_hw_params_can_overrange(const snd_pcm_hw_params_t *params)
Check if hardware supports overrange detection.
Definition pcm.c:3678
snd_pcm_hw_params_set_buffer_size_min
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.
Definition pcm.c:6014
snd_pcm_hw_params_set_period_size_last
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)
Restrict a configuration space to contain only its maximum period size.
Definition pcm.c:5509
snd_pcm_hw_params_can_disable_period_wakeup
int snd_pcm_hw_params_can_disable_period_wakeup(const snd_pcm_hw_params_t *params)
Check if hardware can disable period wakeups.
Definition pcm.c:3794
snd_pcm_hw_params_set_access_mask
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.
Definition pcm.c:4404
snd_pcm_hw_params_set_buffer_size_last
int 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.
Definition pcm.c:6107
snd_pcm_hw_params_set_channels_first
int 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.
Definition pcm.c:4743
snd_pcm_hw_params_get_channels
int snd_pcm_hw_params_get_channels(const snd_pcm_hw_params_t *params, unsigned int *val)
Extract channels from a configuration space.
Definition pcm.c:4620
snd_pcm_hw_params_get_period_time_min
int 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.
Definition pcm.c:5136
snd_pcm_hw_params_is_joint_duplex
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)
Definition pcm.c:3758
snd_pcm_hw_params_set_buffer_size_minmax
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.
Definition pcm.c:6047
snd_pcm_hw_params_set_buffer_time_last
int 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.
Definition pcm.c:5913
snd_pcm_hw_params_test_period_time
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.
Definition pcm.c:5170
snd_pcm_hw_params_test_subformat
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.
Definition pcm.c:4539
snd_pcm_hw_params_set_periods_minmax
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.
Definition pcm.c:5657
snd_pcm_hw_params_set_period_size_first
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)
Restrict a configuration space to contain only its minimum period size.
Definition pcm.c:5486
snd_pcm_hw_params_get_rate_min
int 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.
Definition pcm.c:4796
snd_pcm_hw_params_can_sync_start
int snd_pcm_hw_params_can_sync_start(const snd_pcm_hw_params_t *params)
Check if hardware supports synchronized start with sample resolution.
Definition pcm.c:3778
snd_pcm_hw_params_supports_audio_wallclock_ts
int snd_pcm_hw_params_supports_audio_wallclock_ts(const snd_pcm_hw_params_t *params)
Check if hardware supports audio wallclock timestamps.
Definition pcm.c:3837
snd_pcm_hw_params_get_export_buffer
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.
Definition pcm.c:5011
snd_pcm_areas_silence
int snd_pcm_areas_silence(const snd_pcm_channel_area_t *dst_channels, snd_pcm_uframes_t dst_offset, unsigned int channels, snd_pcm_uframes_t frames, snd_pcm_format_t format)
Silence one or more areas.
Definition pcm.c:3259
snd_pcm_format_silence_64
uint64_t snd_pcm_format_silence_64(snd_pcm_format_t format)
Return 64 bit expressing silence for a PCM sample format.
Definition pcm_misc.c:410
snd_pcm_area_silence
int snd_pcm_area_silence(const snd_pcm_channel_area_t *dst_channel, snd_pcm_uframes_t dst_offset, unsigned int samples, snd_pcm_format_t format)
Silence an area.
Definition pcm.c:3144
snd_pcm_format_float
int snd_pcm_format_float(snd_pcm_format_t format)
Return float info for a PCM sample format.
Definition pcm_misc.c:110
snd_pcm_areas_copy_wrap
int snd_pcm_areas_copy_wrap(const snd_pcm_channel_area_t *dst_channels, snd_pcm_uframes_t dst_offset, const snd_pcm_uframes_t dst_size, const snd_pcm_channel_area_t *src_channels, snd_pcm_uframes_t src_offset, const snd_pcm_uframes_t src_size, const unsigned int channels, snd_pcm_uframes_t frames, const snd_pcm_format_t format)
Copy one or more areas.
Definition pcm.c:3509
snd_pcm_format_big_endian
int snd_pcm_format_big_endian(snd_pcm_format_t format)
Return endian info for a PCM sample format.
Definition pcm_misc.c:181
snd_pcm_format_size
ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples)
Return bytes needed to store a quantity of PCM sample.
Definition pcm_misc.c:342
snd_pcm_format_linear
int snd_pcm_format_linear(snd_pcm_format_t format)
Return linear info for a PCM sample format.
Definition pcm_misc.c:100
snd_pcm_build_linear_format
snd_pcm_format_t snd_pcm_build_linear_format(int width, int pwidth, int unsignd, int big_endian)
Compose a PCM sample linear format.
Definition pcm_misc.c:716
snd_pcm_format_silence_32
uint32_t snd_pcm_format_silence_32(snd_pcm_format_t format)
Return 32 bit expressing silence for a PCM sample format.
Definition pcm_misc.c:572
snd_pcm_format_set_silence
int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int samples)
Silence a PCM samples buffer.
Definition pcm_misc.c:607
snd_pcm_format_little_endian
int snd_pcm_format_little_endian(snd_pcm_format_t format)
Return endian info for a PCM sample format.
Definition pcm_misc.c:128
snd_pcm_format_signed
int snd_pcm_format_signed(snd_pcm_format_t format)
Return sign info for a PCM sample linear format.
Definition pcm_misc.c:35
snd_pcm_format_unsigned
int snd_pcm_format_unsigned(snd_pcm_format_t format)
Return sign info for a PCM sample linear format.
Definition pcm_misc.c:85
snd_pcm_format_width
int snd_pcm_format_width(snd_pcm_format_t format)
Return the bit-width of the format.
Definition pcm_misc.c:210
snd_pcm_area_copy
int snd_pcm_area_copy(const snd_pcm_channel_area_t *dst_channel, snd_pcm_uframes_t dst_offset, const snd_pcm_channel_area_t *src_channel, snd_pcm_uframes_t src_offset, unsigned int samples, snd_pcm_format_t format)
Copy an area.
Definition pcm.c:3310
snd_pcm_format_physical_width
int snd_pcm_format_physical_width(snd_pcm_format_t format)
Return the physical bit-width of the format (bits needed to store a PCM sample)
Definition pcm_misc.c:277
snd_pcm_format_silence
uint8_t snd_pcm_format_silence(snd_pcm_format_t format)
Return 8 bit expressing silence for a PCM sample format.
Definition pcm_misc.c:594
snd_pcm_frames_to_bytes
ssize_t snd_pcm_frames_to_bytes(snd_pcm_t *pcm, snd_pcm_sframes_t frames)
Convert frames in bytes for a PCM.
Definition pcm.c:2464
snd_pcm_areas_copy
int snd_pcm_areas_copy(const snd_pcm_channel_area_t *dst_channels, snd_pcm_uframes_t dst_offset, const snd_pcm_channel_area_t *src_channels, snd_pcm_uframes_t src_offset, unsigned int channels, snd_pcm_uframes_t frames, snd_pcm_format_t format)
Copy one or more areas.
Definition pcm.c:3431
snd_pcm_format_silence_16
uint16_t snd_pcm_format_silence_16(snd_pcm_format_t format)
Return 16 bit expressing silence for a PCM sample format.
Definition pcm_misc.c:583
snd_pcm_samples_to_bytes
ssize_t snd_pcm_samples_to_bytes(snd_pcm_t *pcm, long samples)
Convert samples in bytes for a PCM.
Definition pcm.c:2496
snd_pcm_bytes_to_samples
long snd_pcm_bytes_to_samples(snd_pcm_t *pcm, ssize_t bytes)
Convert bytes in samples for a PCM.
Definition pcm.c:2480
snd_pcm_bytes_to_frames
snd_pcm_sframes_t snd_pcm_bytes_to_frames(snd_pcm_t *pcm, ssize_t bytes)
Convert bytes in frames for a PCM.
Definition pcm.c:2448
snd_pcm_format_cpu_endian
int snd_pcm_format_cpu_endian(snd_pcm_format_t format)
Return endian info for a PCM sample format.
Definition pcm_misc.c:196
snd_pcm_hook_func_t
int(* snd_pcm_hook_func_t)(snd_pcm_hook_t *hook)
Definition pcm.h:1240
snd_pcm_hook_get_pcm
snd_pcm_t * snd_pcm_hook_get_pcm(snd_pcm_hook_t *hook)
Get PCM handle for a PCM hook.
Definition pcm_hooks.c:560
snd_pcm_hook_get_private
void * snd_pcm_hook_get_private(snd_pcm_hook_t *hook)
Get callback function private data for a PCM hook.
Definition pcm_hooks.c:571
snd_pcm_hook_remove
int snd_pcm_hook_remove(snd_pcm_hook_t *hook)
Remove a PCM hook.
Definition pcm_hooks.c:628
snd_pcm_hook_type_t
snd_pcm_hook_type_t
Definition pcm.h:1230
snd_pcm_hook_set_private
void snd_pcm_hook_set_private(snd_pcm_hook_t *hook, void *private_data)
Set callback function private data for a PCM hook.
Definition pcm_hooks.c:582
snd_pcm_hook_add
int snd_pcm_hook_add(snd_pcm_hook_t **hookp, snd_pcm_t *pcm, snd_pcm_hook_type_t type, snd_pcm_hook_func_t func, void *private_data)
Add a PCM hook at end of hooks chain.
Definition pcm_hooks.c:600
snd_pcm_hook_t
struct _snd_pcm_hook snd_pcm_hook_t
Definition pcm.h:1238
snd_pcm_info_get_device
unsigned int snd_pcm_info_get_device(const snd_pcm_info_t *obj)
Get device from a PCM info container.
Definition pcm.c:7218
snd_pcm_info_copy
void snd_pcm_info_copy(snd_pcm_info_t *dst, const snd_pcm_info_t *src)
copy one snd_pcm_info_t to another
Definition pcm.c:7207
snd_pcm_info_malloc
int snd_pcm_info_malloc(snd_pcm_info_t **ptr)
allocate an invalid snd_pcm_info_t using standard malloc
Definition pcm.c:7184
snd_pcm_info_set_subdevice
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)
Definition pcm.c:7363
snd_pcm_info_get_subdevice_name
const char * snd_pcm_info_get_subdevice_name(const snd_pcm_info_t *obj)
Get subdevice name from a PCM info container.
Definition pcm.c:7284
snd_pcm_info_get_subclass
snd_pcm_subclass_t snd_pcm_info_get_subclass(const snd_pcm_info_t *obj)
Get subclass from a PCM info container.
Definition pcm.c:7306
snd_pcm_info_get_card
int snd_pcm_info_get_card(const snd_pcm_info_t *obj)
Get card from a PCM info container.
Definition pcm.c:7251
snd_pcm_info_get_sync
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.
Definition pcm.c:7339
snd_pcm_info_get_name
const char * snd_pcm_info_get_name(const snd_pcm_info_t *obj)
Get name from a PCM info container.
Definition pcm.c:7273
snd_pcm_info_set_stream
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)
Definition pcm.c:7374
snd_pcm_info_sizeof
size_t snd_pcm_info_sizeof(void)
get size of snd_pcm_info_t
Definition pcm.c:7174
snd_pcm_info_get_id
const char * snd_pcm_info_get_id(const snd_pcm_info_t *obj)
Get id from a PCM info container.
Definition pcm.c:7262
snd_pcm_info_free
void snd_pcm_info_free(snd_pcm_info_t *obj)
frees a previously allocated snd_pcm_info_t
Definition pcm.c:7197
snd_pcm_info_set_device
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)
Definition pcm.c:7352
snd_pcm_info_get_stream
snd_pcm_stream_t snd_pcm_info_get_stream(const snd_pcm_info_t *obj)
Get stream (direction) from a PCM info container.
Definition pcm.c:7240
snd_pcm_info_get_subdevices_avail
unsigned int snd_pcm_info_get_subdevices_avail(const snd_pcm_info_t *obj)
Get available subdevices count from a PCM info container.
Definition pcm.c:7328
snd_pcm_info_get_class
snd_pcm_class_t snd_pcm_info_get_class(const snd_pcm_info_t *obj)
Get class from a PCM info container.
Definition pcm.c:7295
snd_pcm_info_get_subdevices_count
unsigned int snd_pcm_info_get_subdevices_count(const snd_pcm_info_t *obj)
Get subdevices count from a PCM info container.
Definition pcm.c:7317
snd_pcm_info_get_subdevice
unsigned int snd_pcm_info_get_subdevice(const snd_pcm_info_t *obj)
Get subdevice from a PCM info container.
Definition pcm.c:7229
snd_pcm_sw_params_get_period_event
int snd_pcm_sw_params_get_period_event(const snd_pcm_sw_params_t *params, int *val)
Get period event from a software configuration container.
Definition pcm.c:6721
snd_pcm_sw_params_get_tstamp_type
int snd_pcm_sw_params_get_tstamp_type(const snd_pcm_sw_params_t *params, snd_pcm_tstamp_type_t *val)
Get timestamp type from a software configuration container.
Definition pcm.c:6609
snd_pcm_sw_params_set_start_threshold
int snd_pcm_sw_params_set_start_threshold(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)
Set start threshold inside a software configuration container.
Definition pcm.c:6773
snd_pcm_sw_params_get_start_threshold
int snd_pcm_sw_params_get_start_threshold(const snd_pcm_sw_params_t *paramsm, snd_pcm_uframes_t *val)
Get start threshold from a software configuration container.
Definition pcm.c:6793
snd_pcm_sw_params_malloc
int snd_pcm_sw_params_malloc(snd_pcm_sw_params_t **ptr)
allocate an invalid snd_pcm_sw_params_t using standard malloc
Definition pcm.c:6412
snd_pcm_sw_params_free
void snd_pcm_sw_params_free(snd_pcm_sw_params_t *obj)
frees a previously allocated snd_pcm_sw_params_t
Definition pcm.c:6425
snd_pcm_sw_params_get_tstamp_mode
int 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.
Definition pcm.c:6577
snd_pcm_sw_params_get_avail_min
int 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.
Definition pcm.c:6691
snd_pcm_sw_params_set_silence_threshold
int snd_pcm_sw_params_set_silence_threshold(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)
Set silence threshold inside a software configuration container.
Definition pcm.c:6862
snd_pcm_sw_params_get_silence_size
int 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.
Definition pcm.c:6946
snd_pcm_sw_params_set_stop_threshold
int snd_pcm_sw_params_set_stop_threshold(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)
Set stop threshold inside a software configuration container.
Definition pcm.c:6817
snd_pcm_sw_params_sizeof
size_t snd_pcm_sw_params_sizeof(void)
get size of snd_pcm_sw_params_t
Definition pcm.c:6402
snd_pcm_sw_params_set_avail_min
int snd_pcm_sw_params_set_avail_min(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)
Set avail min inside a software configuration container.
Definition pcm.c:6665
snd_pcm_sw_params_get_silence_threshold
int 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.
Definition pcm.c:6888
snd_pcm_sw_params_get_stop_threshold
int 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.
Definition pcm.c:6839
snd_pcm_sw_params_get_boundary
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.
Definition pcm.c:6447
snd_pcm_sw_params_set_tstamp_type
int snd_pcm_sw_params_set_tstamp_type(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_tstamp_type_t val)
Set timestamp type inside a software configuration container.
Definition pcm.c:6592
snd_pcm_sw_params_set_tstamp_mode
int snd_pcm_sw_params_set_tstamp_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_tstamp_t val)
Set timestamp mode inside a software configuration container.
Definition pcm.c:6556
snd_pcm_sw_params_set_silence_size
int snd_pcm_sw_params_set_silence_size(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)
Set silence size inside a software configuration container.
Definition pcm.c:6920
snd_pcm_sw_params_set_period_event
int snd_pcm_sw_params_set_period_event(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, int val)
Set period event inside a software configuration container.
Definition pcm.c:6708
snd_pcm_sw_params_copy
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
Definition pcm.c:6435
snd_pcm_scope_get_name
const char * snd_pcm_scope_get_name(snd_pcm_scope_t *scope)
Get name of a SND_PCM_TYPE_METER PCM scope.
Definition pcm_meter.c:963
snd_pcm_scope_get_callback_private
void * snd_pcm_scope_get_callback_private(snd_pcm_scope_t *scope)
Get callbacks private value for a SND_PCM_TYPE_METER PCM scope.
Definition pcm_meter.c:983
snd_pcm_scope_malloc
int snd_pcm_scope_malloc(snd_pcm_scope_t **ptr)
allocate an invalid snd_pcm_scope_t using standard malloc
Definition pcm_meter.c:1232
snd_pcm_meter_get_bufsize
snd_pcm_uframes_t snd_pcm_meter_get_bufsize(snd_pcm_t *pcm)
Get meter buffer size from a SND_PCM_TYPE_METER PCM.
Definition pcm_meter.c:883
snd_pcm_scope_s16_open
int snd_pcm_scope_s16_open(snd_pcm_t *pcm, const char *name, snd_pcm_scope_t **scopep)
Add a s16 pseudo scope to a SND_PCM_TYPE_METER PCM.
Definition pcm_meter.c:1181
snd_pcm_meter_get_boundary
snd_pcm_uframes_t snd_pcm_meter_get_boundary(snd_pcm_t *pcm)
Get boundary for frame pointers from a SND_PCM_TYPE_METER PCM.
Definition pcm_meter.c:939
snd_pcm_scope_set_callback_private
void snd_pcm_scope_set_callback_private(snd_pcm_scope_t *scope, void *val)
Get callbacks private value for a SND_PCM_TYPE_METER PCM scope.
Definition pcm_meter.c:993
snd_pcm_meter_get_rate
unsigned int snd_pcm_meter_get_rate(snd_pcm_t *pcm)
Get meter rate from a SND_PCM_TYPE_METER PCM.
Definition pcm_meter.c:911
snd_pcm_meter_search_scope
snd_pcm_scope_t * snd_pcm_meter_search_scope(snd_pcm_t *pcm, const char *name)
Search an installed scope inside a SND_PCM_TYPE_METER PCM.
Definition pcm_meter.c:863
snd_pcm_meter_get_now
snd_pcm_uframes_t snd_pcm_meter_get_now(snd_pcm_t *pcm)
Get meter "now" frame pointer from a SND_PCM_TYPE_METER PCM.
Definition pcm_meter.c:925
snd_pcm_scope_set_name
void snd_pcm_scope_set_name(snd_pcm_scope_t *scope, const char *val)
Set name of a SND_PCM_TYPE_METER PCM scope.
Definition pcm_meter.c:953
snd_pcm_scope_set_ops
void snd_pcm_scope_set_ops(snd_pcm_scope_t *scope, const snd_pcm_scope_ops_t *val)
Set callbacks for a SND_PCM_TYPE_METER PCM scope.
Definition pcm_meter.c:973
snd_pcm_scope_s16_get_channel_buffer
int16_t * snd_pcm_scope_s16_get_channel_buffer(snd_pcm_scope_t *scope, unsigned int channel)
Get s16 pseudo scope frames buffer for a channel.
Definition pcm_meter.c:1213
snd_pcm_meter_add_scope
int snd_pcm_meter_add_scope(snd_pcm_t *pcm, snd_pcm_scope_t *scope)
Add a scope to a SND_PCM_TYPE_METER PCM.
Definition pcm_meter.c:848
snd_pcm_meter_get_channels
unsigned int snd_pcm_meter_get_channels(snd_pcm_t *pcm)
Get meter channels from a SND_PCM_TYPE_METER PCM.
Definition pcm_meter.c:897
snd_spcm_latency_t
snd_spcm_latency_t
Definition pcm.h:1319
snd_spcm_init_duplex
int snd_spcm_init_duplex(snd_pcm_t *playback_pcm, snd_pcm_t *capture_pcm, unsigned int rate, unsigned int channels, snd_pcm_format_t format, snd_pcm_subformat_t subformat, snd_spcm_latency_t latency, snd_pcm_access_t _access, snd_spcm_xrun_type_t xrun_type, snd_spcm_duplex_type_t duplex_type)
Initialize simple PCMs in the duplex mode.
Definition pcm_simple.c:209
snd_spcm_init
int snd_spcm_init(snd_pcm_t *pcm, unsigned int rate, unsigned int channels, snd_pcm_format_t format, snd_pcm_subformat_t subformat, snd_spcm_latency_t latency, snd_pcm_access_t _access, snd_spcm_xrun_type_t xrun_type)
Set up a simple PCM.
Definition pcm_simple.c:157
snd_spcm_duplex_type_t
snd_spcm_duplex_type_t
Definition pcm.h:1340
snd_spcm_init_get_params
int snd_spcm_init_get_params(snd_pcm_t *pcm, unsigned int *rate, snd_pcm_uframes_t *buffer_size, snd_pcm_uframes_t *period_size)
Get the set up of simple PCM.
Definition pcm_simple.c:284
snd_spcm_xrun_type_t
snd_spcm_xrun_type_t
Definition pcm.h:1332
SND_SPCM_LATENCY_STANDARD
@ SND_SPCM_LATENCY_STANDARD
Definition pcm.h:1322
SND_SPCM_LATENCY_REALTIME
@ SND_SPCM_LATENCY_REALTIME
Definition pcm.h:1328
SND_SPCM_LATENCY_MEDIUM
@ SND_SPCM_LATENCY_MEDIUM
Definition pcm.h:1325
SND_SPCM_DUPLEX_LIBERAL
@ SND_SPCM_DUPLEX_LIBERAL
Definition pcm.h:1342
SND_SPCM_DUPLEX_PEDANTIC
@ SND_SPCM_DUPLEX_PEDANTIC
Definition pcm.h:1344
SND_SPCM_XRUN_STOP
@ SND_SPCM_XRUN_STOP
Definition pcm.h:1336
SND_SPCM_XRUN_IGNORE
@ SND_SPCM_XRUN_IGNORE
Definition pcm.h:1334
snd_pcm_status_get_audio_htstamp
void snd_pcm_status_get_audio_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr)
Get "now" hi-res audio timestamp from a PCM status container.
Definition pcm.c:7078
snd_pcm_status_get_delay
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)
Definition pcm.c:7132
snd_pcm_status_copy
void snd_pcm_status_copy(snd_pcm_status_t *dst, const snd_pcm_status_t *src)
copy one snd_pcm_status_t to another
Definition pcm.c:6992
snd_pcm_status_get_overrange
snd_pcm_uframes_t snd_pcm_status_get_overrange(const snd_pcm_status_t *obj)
Get count of ADC overrange detections since last call.
Definition pcm.c:7164
snd_pcm_status_get_trigger_tstamp
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.
Definition pcm.c:7018
snd_pcm_status_sizeof
size_t snd_pcm_status_sizeof(void)
get size of snd_pcm_status_t
Definition pcm.c:6959
snd_pcm_status_get_driver_htstamp
void snd_pcm_status_get_driver_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr)
Get "now" hi-res driver timestamp from a PCM status container. Defines when the status was generated ...
Definition pcm.c:7090
snd_pcm_status_get_audio_htstamp_report
void snd_pcm_status_get_audio_htstamp_report(const snd_pcm_status_t *obj, snd_pcm_audio_tstamp_report_t *audio_tstamp_report)
Get audio_tstamp_report from a PCM status container.
Definition pcm.c:7101
snd_pcm_status_get_avail
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)
Definition pcm.c:7142
snd_pcm_status_malloc
int snd_pcm_status_malloc(snd_pcm_status_t **ptr)
allocate an invalid snd_pcm_status_t using standard malloc
Definition pcm.c:6969
snd_pcm_status_get_trigger_htstamp
void 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.
Definition pcm.c:7037
snd_pcm_status_get_state
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)
Definition pcm.c:7003
snd_pcm_status_get_avail_max
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.
Definition pcm.c:7154
snd_pcm_status_set_audio_htstamp_config
void snd_pcm_status_set_audio_htstamp_config(snd_pcm_status_t *obj, snd_pcm_audio_tstamp_config_t *audio_tstamp_config)
set audio_tstamp_config from a PCM status container
Definition pcm.c:7115
snd_pcm_status_get_tstamp
void snd_pcm_status_get_tstamp(const snd_pcm_status_t *obj, snd_timestamp_t *ptr)
Get "now" timestamp from a PCM status container.
Definition pcm.c:7050
snd_pcm_status_free
void snd_pcm_status_free(snd_pcm_status_t *obj)
frees a previously allocated snd_pcm_status_t
Definition pcm.c:6982
snd_pcm_status_get_htstamp
void 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.
Definition pcm.c:7065
snd_pcm_subformat_mask_free
void snd_pcm_subformat_mask_free(snd_pcm_subformat_mask_t *obj)
frees a previously allocated snd_pcm_subformat_mask_t
Definition pcm.c:4202
snd_pcm_subformat_mask_test
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
Definition pcm.c:4241
snd_pcm_subformat_mask_none
void snd_pcm_subformat_mask_none(snd_pcm_subformat_mask_t *mask)
reset all bits in a snd_pcm_subformat_mask_t
Definition pcm.c:4222
snd_pcm_subformat_mask_malloc
int snd_pcm_subformat_mask_malloc(snd_pcm_subformat_mask_t **ptr)
allocate an empty snd_pcm_subformat_mask_t using standard malloc
Definition pcm.c:4189
snd_pcm_subformat_mask_empty
int snd_pcm_subformat_mask_empty(const snd_pcm_subformat_mask_t *mask)
test, if given a snd_pcm_subformat_mask_t is empty
Definition pcm.c:4252
snd_pcm_subformat_mask_sizeof
size_t snd_pcm_subformat_mask_sizeof(void)
get size of snd_pcm_subformat_mask_t
Definition pcm.c:4179
snd_pcm_subformat_mask_set
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
Definition pcm.c:4262
snd_pcm_subformat_mask_any
void snd_pcm_subformat_mask_any(snd_pcm_subformat_mask_t *mask)
set all bits in a snd_pcm_subformat_mask_t
Definition pcm.c:4231
snd_pcm_subformat_mask_reset
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
Definition pcm.c:4272
snd_pcm_subformat_mask_copy
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
Definition pcm.c:4212
snd_pcm_delay
int snd_pcm_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp)
Obtain delay for a running PCM handle.
Definition pcm.c:1152
snd_pcm_close
int snd_pcm_close(snd_pcm_t *pcm)
close PCM handle
Definition pcm.c:776
_snd_pcm_type
_snd_pcm_type
Definition pcm.h:421
snd_pcm_chmap_position
snd_pcm_chmap_position
Definition pcm.h:589
snd_pcm_format_mask_t
struct _snd_pcm_format_mask snd_pcm_format_mask_t
Definition pcm.h:73
snd_pcm_free_chmaps
void snd_pcm_free_chmaps(snd_pcm_chmap_query_t **maps)
Definition pcm.c:8294
snd_pcm_unlink
int snd_pcm_unlink(snd_pcm_t *pcm)
Remove a PCM from a linked group.
Definition pcm.c:1732
snd_pcm_rewindable
snd_pcm_sframes_t snd_pcm_rewindable(snd_pcm_t *pcm)
Get safe count of frames which can be rewinded.
Definition pcm.c:1424
snd_pcm_start_t
snd_pcm_start_t
Definition pcm.h:324
snd_pcm_resume
int snd_pcm_resume(snd_pcm_t *pcm)
Resume from suspend, no samples are lost.
Definition pcm.c:1181
snd_pcm_avail_delay
int snd_pcm_avail_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *availp, snd_pcm_sframes_t *delayp)
Combine snd_pcm_avail and snd_pcm_delay functions.
Definition pcm.c:3105
snd_pcm_open_fallback
int snd_pcm_open_fallback(snd_pcm_t **pcm, snd_config_t *root, const char *name, const char *orig_name, snd_pcm_stream_t stream, int mode)
Opens a fallback PCM.
Definition pcm.c:2792
snd_pcm_chmap_name
const char * snd_pcm_chmap_name(enum snd_pcm_chmap_position val)
Definition pcm.c:8388
snd_pcm_hw_params
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.
Definition pcm.c:951
snd_pcm_chmap_print
int snd_pcm_chmap_print(const snd_pcm_chmap_t *map, size_t maxlen, char *buf)
Definition pcm.c:8456
snd_pcm_subformat_t
snd_pcm_subformat_t
Definition pcm.h:284
snd_pcm_recover
int snd_pcm_recover(snd_pcm_t *pcm, int err, int silent)
Recover the stream state from an error or suspend.
Definition pcm.c:8737
snd_pcm_hw_free
int snd_pcm_hw_free(snd_pcm_t *pcm)
Remove PCM hardware configuration and free associated resources.
Definition pcm.c:968
snd_pcm_get_params
int snd_pcm_get_params(snd_pcm_t *pcm, snd_pcm_uframes_t *buffer_size, snd_pcm_uframes_t *period_size)
Get the transfer size parameters in a simple way.
Definition pcm.c:8974
snd_pcm_audio_tstamp_type_t
snd_pcm_audio_tstamp_type_t
Definition pcm.h:363
snd_pcm_status
int snd_pcm_status(snd_pcm_t *pcm, snd_pcm_status_t *status)
Obtain status (runtime) information for PCM handle.
Definition pcm.c:1054
snd_pcm_reset
int snd_pcm_reset(snd_pcm_t *pcm)
Reset PCM position.
Definition pcm.c:1265
snd_pcm_htimestamp
int snd_pcm_htimestamp(snd_pcm_t *pcm, snd_pcm_uframes_t *avail, snd_htimestamp_t *tstamp)
Obtain last position update hi-res timestamp.
Definition pcm.c:1210
snd_pcm_hwsync
int snd_pcm_hwsync(snd_pcm_t *pcm)
(DEPRECATED) Synchronize stream position with hardware
Definition pcm.c:1107
snd_pcm_scope_t
struct _snd_pcm_scope snd_pcm_scope_t
Definition pcm.h:519
snd_pcm_set_params
int snd_pcm_set_params(snd_pcm_t *pcm, snd_pcm_format_t format, snd_pcm_access_t access, unsigned int channels, unsigned int rate, int soft_resample, unsigned int latency)
Set the hardware and software parameters in a simple way.
Definition pcm.c:8785
snd_pcm_drain
int snd_pcm_drain(snd_pcm_t *pcm)
Stop a PCM preserving pending frames.
Definition pcm.c:1358
snd_pcm_readi
snd_pcm_sframes_t snd_pcm_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size)
Read interleaved frames from a PCM.
Definition pcm.c:1647
snd_async_handler_get_pcm
snd_pcm_t * snd_async_handler_get_pcm(snd_async_handler_t *handler)
Return PCM handle related to an async handler.
Definition pcm.c:2546
snd_pcm_chmap_type_name
const char * snd_pcm_chmap_type_name(enum snd_pcm_chmap_type val)
Definition pcm.c:8355
snd_pcm_avail
snd_pcm_sframes_t snd_pcm_avail(snd_pcm_t *pcm)
Return number of frames ready to be read (capture) / written (playback)
Definition pcm.c:3074
snd_pcm_chmap_parse_string
snd_pcm_chmap_t * snd_pcm_chmap_parse_string(const char *str)
Definition pcm.c:8546
snd_async_add_pcm_handler
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.
Definition pcm.c:2516
snd_pcm_set_chmap
int snd_pcm_set_chmap(snd_pcm_t *pcm, const snd_pcm_chmap_t *map)
Definition pcm.c:8324
snd_pcm_state_t
snd_pcm_state_t
Definition pcm.h:299
snd_pcm_sw_params_current
int snd_pcm_sw_params_current(snd_pcm_t *pcm, snd_pcm_sw_params_t *params)
Return current software configuration for a PCM.
Definition pcm.c:6365
snd_pcm_query_chmaps
snd_pcm_chmap_query_t ** snd_pcm_query_chmaps(snd_pcm_t *pcm)
Definition pcm.c:8283
snd_pcm_hw_params_t
struct _snd_pcm_hw_params snd_pcm_hw_params_t
Definition pcm.h:64
snd_pcm_access_t
snd_pcm_access_t
Definition pcm.h:110
snd_pcm_xrun_t
snd_pcm_xrun_t
Definition pcm.h:333
snd_pcm_name
const char * snd_pcm_name(snd_pcm_t *pcm)
get identifier of PCM handle
Definition pcm.c:736
snd_pcm_tstamp_t
snd_pcm_tstamp_t
Definition pcm.h:342
snd_pcm_subclass_t
snd_pcm_subclass_t
Definition pcm.h:92
snd_pcm_start
int snd_pcm_start(snd_pcm_t *pcm)
Start a PCM.
Definition pcm.c:1290
snd_pcm_rewind
snd_pcm_sframes_t snd_pcm_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
Move application frame position backward.
Definition pcm.c:1455
snd_pcm_tstamp_type_t
snd_pcm_tstamp_type_t
Definition pcm.h:355
snd_pcm_drop
int snd_pcm_drop(snd_pcm_t *pcm)
Stop a PCM dropping pending frames.
Definition pcm.c:1321
snd_pcm_sframes_t
long snd_pcm_sframes_t
Definition pcm.h:398
snd_pcm_poll_descriptors
int snd_pcm_poll_descriptors(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int space)
get poll descriptors
Definition pcm.c:1823
snd_pcm_prepare
int snd_pcm_prepare(snd_pcm_t *pcm)
Prepare PCM for use.
Definition pcm.c:1235
snd_pcm_query_chmaps_from_hw
snd_pcm_chmap_query_t ** snd_pcm_query_chmaps_from_hw(int card, int dev, int subdev, snd_pcm_stream_t stream)
Definition pcm_hw.c:1286
snd_pcm_info_t
struct _snd_pcm_info snd_pcm_info_t
Definition pcm.h:48
snd_pcm_sw_params_t
struct _snd_pcm_sw_params snd_pcm_sw_params_t
Definition pcm.h:67
snd_pcm_poll_descriptors_revents
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
Definition pcm.c:1865
snd_pcm_access_mask_t
struct _snd_pcm_access_mask snd_pcm_access_mask_t
Definition pcm.h:71
snd_pcm_open
int snd_pcm_open(snd_pcm_t **pcm, const char *name, snd_pcm_stream_t stream, int mode)
Opens a PCM.
Definition pcm.c:2744
snd_pcm_state
snd_pcm_state_t snd_pcm_state(snd_pcm_t *pcm)
Return PCM state.
Definition pcm.c:1083
snd_pcm_open_lconf
int snd_pcm_open_lconf(snd_pcm_t **pcm, const char *name, snd_pcm_stream_t stream, int mode, snd_config_t *lconf)
Opens a PCM using local configuration.
Definition pcm.c:2774
snd_pcm_subformat_mask_t
struct _snd_pcm_subformat_mask snd_pcm_subformat_mask_t
Definition pcm.h:75
snd_pcm_sw_params
int snd_pcm_sw_params(snd_pcm_t *pcm, snd_pcm_sw_params_t *params)
Install PCM software configuration defined by params.
Definition pcm.c:1001
snd_pcm_avail_update
snd_pcm_sframes_t snd_pcm_avail_update(snd_pcm_t *pcm)
Return number of frames ready to be read (capture) / written (playback)
Definition pcm.c:3050
snd_pcm_nonblock
int snd_pcm_nonblock(snd_pcm_t *pcm, int nonblock)
set nonblock mode
Definition pcm.c:812
snd_pcm_stream
snd_pcm_stream_t snd_pcm_stream(snd_pcm_t *pcm)
get stream for a PCM handle
Definition pcm.c:762
snd_pcm_status_t
struct _snd_pcm_status snd_pcm_status_t
Definition pcm.h:69
snd_pcm_t
struct _snd_pcm snd_pcm_t
Definition pcm.h:418
snd_pcm_format_t
snd_pcm_format_t
Definition pcm.h:125
snd_pcm_forwardable
snd_pcm_sframes_t snd_pcm_forwardable(snd_pcm_t *pcm)
Get safe count of frames which can be forwarded.
Definition pcm.c:1490
snd_pcm_type
snd_pcm_type_t snd_pcm_type(snd_pcm_t *pcm)
get type of PCM handle
Definition pcm.c:749
snd_pcm_chmap_long_name
const char * snd_pcm_chmap_long_name(enum snd_pcm_chmap_position val)
Definition pcm.c:8441
snd_pcm_uframes_t
unsigned long snd_pcm_uframes_t
Definition pcm.h:396
snd_pcm_writei
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.
Definition pcm.c:1569
snd_pcm_get_chmap
snd_pcm_chmap_t * snd_pcm_get_chmap(snd_pcm_t *pcm)
Definition pcm.c:8311
snd_pcm_stream_t
snd_pcm_stream_t
Definition pcm.h:101
snd_pcm_link
int snd_pcm_link(snd_pcm_t *pcm1, snd_pcm_t *pcm2)
Link two PCMs.
Definition pcm.c:1714
snd_pcm_poll_descriptors_count
int snd_pcm_poll_descriptors_count(snd_pcm_t *pcm)
get count of poll descriptors for PCM handle
Definition pcm.c:1759
snd_pcm_type_t
enum _snd_pcm_type snd_pcm_type_t
Definition pcm.h:489
snd_pcm_forward
snd_pcm_sframes_t snd_pcm_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
Move application frame position forward.
Definition pcm.c:1524
snd_pcm_class_t
snd_pcm_class_t
Definition pcm.h:78
snd_pcm_chmap_from_string
unsigned int snd_pcm_chmap_from_string(const char *str)
Definition pcm.c:8534
snd_pcm_wait
int snd_pcm_wait(snd_pcm_t *pcm, int timeout)
Wait for a PCM to become ready.
Definition pcm.c:2903
snd_pcm_pause
int snd_pcm_pause(snd_pcm_t *pcm, int enable)
Pause/resume PCM.
Definition pcm.c:1392
snd_pcm_chmap_type
snd_pcm_chmap_type
Definition pcm.h:580
snd_pcm_info
int snd_pcm_info(snd_pcm_t *pcm, snd_pcm_info_t *info)
Obtain general (static) information for PCM handle.
Definition pcm.c:882
snd_pcm_writen
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.
Definition pcm.c:1608
snd_pcm_hw_params_current
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.
Definition pcm.c:900
snd_pcm_readn
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.
Definition pcm.c:1686
SND_PCM_TYPE_DSHARE
@ SND_PCM_TYPE_DSHARE
Definition pcm.h:474
SND_PCM_TYPE_HW
@ SND_PCM_TYPE_HW
Definition pcm.h:423
SND_PCM_TYPE_DMIX
@ SND_PCM_TYPE_DMIX
Definition pcm.h:468
SND_PCM_TYPE_NULL
@ SND_PCM_TYPE_NULL
Definition pcm.h:432
SND_PCM_TYPE_MULAW
@ SND_PCM_TYPE_MULAW
Definition pcm.h:444
SND_PCM_TYPE_ROUTE
@ SND_PCM_TYPE_ROUTE
Definition pcm.h:450
SND_PCM_TYPE_HOOKS
@ SND_PCM_TYPE_HOOKS
Definition pcm.h:425
SND_PCM_TYPE_LINEAR
@ SND_PCM_TYPE_LINEAR
Definition pcm.h:440
SND_PCM_TYPE_INET
@ SND_PCM_TYPE_INET
Definition pcm.h:436
SND_PCM_TYPE_JACK
@ SND_PCM_TYPE_JACK
Definition pcm.h:470
SND_PCM_TYPE_METER
@ SND_PCM_TYPE_METER
Definition pcm.h:456
SND_PCM_TYPE_DSNOOP
@ SND_PCM_TYPE_DSNOOP
Definition pcm.h:472
SND_PCM_TYPE_MULTI
@ SND_PCM_TYPE_MULTI
Definition pcm.h:428
SND_PCM_TYPE_FILE
@ SND_PCM_TYPE_FILE
Definition pcm.h:430
SND_PCM_TYPE_SHARE
@ SND_PCM_TYPE_SHARE
Definition pcm.h:454
SND_PCM_TYPE_SHM
@ SND_PCM_TYPE_SHM
Definition pcm.h:434
SND_PCM_TYPE_SOFTVOL
@ SND_PCM_TYPE_SOFTVOL
Definition pcm.h:478
SND_PCM_TYPE_LBSERVER
@ SND_PCM_TYPE_LBSERVER
Definition pcm.h:462
SND_PCM_TYPE_EXTPLUG
@ SND_PCM_TYPE_EXTPLUG
Definition pcm.h:482
SND_PCM_TYPE_ADPCM
@ SND_PCM_TYPE_ADPCM
Definition pcm.h:446
SND_PCM_TYPE_MIX
@ SND_PCM_TYPE_MIX
Definition pcm.h:458
SND_PCM_TYPE_MMAP_EMUL
@ SND_PCM_TYPE_MMAP_EMUL
Definition pcm.h:484
SND_PCM_TYPE_IEC958
@ SND_PCM_TYPE_IEC958
Definition pcm.h:476
SND_PCM_TYPE_ALAW
@ SND_PCM_TYPE_ALAW
Definition pcm.h:442
SND_PCM_TYPE_DROUTE
@ SND_PCM_TYPE_DROUTE
Definition pcm.h:460
SND_PCM_TYPE_RATE
@ SND_PCM_TYPE_RATE
Definition pcm.h:448
SND_PCM_TYPE_IOPLUG
@ SND_PCM_TYPE_IOPLUG
Definition pcm.h:480
SND_PCM_TYPE_PLUG
@ SND_PCM_TYPE_PLUG
Definition pcm.h:452
SND_PCM_TYPE_COPY
@ SND_PCM_TYPE_COPY
Definition pcm.h:438
SND_PCM_TYPE_LADSPA
@ SND_PCM_TYPE_LADSPA
Definition pcm.h:466
SND_PCM_TYPE_LINEAR_FLOAT
@ SND_PCM_TYPE_LINEAR_FLOAT
Definition pcm.h:464
SND_CHMAP_TSR
@ SND_CHMAP_TSR
Definition pcm.h:621
SND_CHMAP_RRC
@ SND_CHMAP_RRC
Definition pcm.h:605
SND_CHMAP_TFLC
@ SND_CHMAP_TFLC
Definition pcm.h:618
SND_CHMAP_FLW
@ SND_CHMAP_FLW
Definition pcm.h:606
SND_CHMAP_FLH
@ SND_CHMAP_FLH
Definition pcm.h:608
SND_CHMAP_FR
@ SND_CHMAP_FR
Definition pcm.h:594
SND_CHMAP_TFRC
@ SND_CHMAP_TFRC
Definition pcm.h:619
SND_CHMAP_FC
@ SND_CHMAP_FC
Definition pcm.h:597
SND_CHMAP_RR
@ SND_CHMAP_RR
Definition pcm.h:596
SND_CHMAP_LFE
@ SND_CHMAP_LFE
Definition pcm.h:598
SND_CHMAP_TSL
@ SND_CHMAP_TSL
Definition pcm.h:620
SND_CHMAP_UNKNOWN
@ SND_CHMAP_UNKNOWN
Definition pcm.h:590
SND_CHMAP_MONO
@ SND_CHMAP_MONO
Definition pcm.h:592
SND_CHMAP_FL
@ SND_CHMAP_FL
Definition pcm.h:593
SND_CHMAP_RLFE
@ SND_CHMAP_RLFE
Definition pcm.h:623
SND_CHMAP_BLC
@ SND_CHMAP_BLC
Definition pcm.h:625
SND_CHMAP_BC
@ SND_CHMAP_BC
Definition pcm.h:624
SND_CHMAP_FRC
@ SND_CHMAP_FRC
Definition pcm.h:603
SND_CHMAP_NA
@ SND_CHMAP_NA
Definition pcm.h:591
SND_CHMAP_RLC
@ SND_CHMAP_RLC
Definition pcm.h:604
SND_CHMAP_FRW
@ SND_CHMAP_FRW
Definition pcm.h:607
SND_CHMAP_FLC
@ SND_CHMAP_FLC
Definition pcm.h:602
SND_CHMAP_TFC
@ SND_CHMAP_TFC
Definition pcm.h:614
SND_CHMAP_TRR
@ SND_CHMAP_TRR
Definition pcm.h:616
SND_CHMAP_TRL
@ SND_CHMAP_TRL
Definition pcm.h:615
SND_CHMAP_LLFE
@ SND_CHMAP_LLFE
Definition pcm.h:622
SND_CHMAP_SR
@ SND_CHMAP_SR
Definition pcm.h:600
SND_CHMAP_TRC
@ SND_CHMAP_TRC
Definition pcm.h:617
SND_CHMAP_FCH
@ SND_CHMAP_FCH
Definition pcm.h:609
SND_CHMAP_TFR
@ SND_CHMAP_TFR
Definition pcm.h:613
SND_CHMAP_TFL
@ SND_CHMAP_TFL
Definition pcm.h:612
SND_CHMAP_RC
@ SND_CHMAP_RC
Definition pcm.h:601
SND_CHMAP_SL
@ SND_CHMAP_SL
Definition pcm.h:599
SND_CHMAP_BRC
@ SND_CHMAP_BRC
Definition pcm.h:626
SND_CHMAP_FRH
@ SND_CHMAP_FRH
Definition pcm.h:610
SND_CHMAP_RL
@ SND_CHMAP_RL
Definition pcm.h:595
SND_CHMAP_TC
@ SND_CHMAP_TC
Definition pcm.h:611
SND_PCM_START_DATA
@ SND_PCM_START_DATA
Definition pcm.h:326
SND_PCM_START_EXPLICIT
@ SND_PCM_START_EXPLICIT
Definition pcm.h:328
SND_PCM_SUBFORMAT_STD
@ SND_PCM_SUBFORMAT_STD
Definition pcm.h:288
SND_PCM_SUBFORMAT_MSBITS_MAX
@ SND_PCM_SUBFORMAT_MSBITS_MAX
Definition pcm.h:290
SND_PCM_SUBFORMAT_MSBITS_20
@ SND_PCM_SUBFORMAT_MSBITS_20
Definition pcm.h:292
SND_PCM_SUBFORMAT_UNKNOWN
@ SND_PCM_SUBFORMAT_UNKNOWN
Definition pcm.h:286
SND_PCM_SUBFORMAT_MSBITS_24
@ SND_PCM_SUBFORMAT_MSBITS_24
Definition pcm.h:294
SND_PCM_AUDIO_TSTAMP_TYPE_DEFAULT
@ SND_PCM_AUDIO_TSTAMP_TYPE_DEFAULT
Definition pcm.h:369
SND_PCM_AUDIO_TSTAMP_TYPE_LINK_ESTIMATED
@ SND_PCM_AUDIO_TSTAMP_TYPE_LINK_ESTIMATED
Definition pcm.h:372
SND_PCM_AUDIO_TSTAMP_TYPE_LINK_SYNCHRONIZED
@ SND_PCM_AUDIO_TSTAMP_TYPE_LINK_SYNCHRONIZED
Definition pcm.h:373
SND_PCM_AUDIO_TSTAMP_TYPE_LINK
@ SND_PCM_AUDIO_TSTAMP_TYPE_LINK
Definition pcm.h:370
SND_PCM_AUDIO_TSTAMP_TYPE_LINK_ABSOLUTE
@ SND_PCM_AUDIO_TSTAMP_TYPE_LINK_ABSOLUTE
Definition pcm.h:371
SND_PCM_AUDIO_TSTAMP_TYPE_COMPAT
@ SND_PCM_AUDIO_TSTAMP_TYPE_COMPAT
Definition pcm.h:368
SND_PCM_STATE_PREPARED
@ SND_PCM_STATE_PREPARED
Definition pcm.h:305
SND_PCM_STATE_PRIVATE1
@ SND_PCM_STATE_PRIVATE1
Definition pcm.h:320
SND_PCM_STATE_OPEN
@ SND_PCM_STATE_OPEN
Definition pcm.h:301
SND_PCM_STATE_SETUP
@ SND_PCM_STATE_SETUP
Definition pcm.h:303
SND_PCM_STATE_SUSPENDED
@ SND_PCM_STATE_SUSPENDED
Definition pcm.h:315
SND_PCM_STATE_RUNNING
@ SND_PCM_STATE_RUNNING
Definition pcm.h:307
SND_PCM_STATE_DRAINING
@ SND_PCM_STATE_DRAINING
Definition pcm.h:311
SND_PCM_STATE_PAUSED
@ SND_PCM_STATE_PAUSED
Definition pcm.h:313
SND_PCM_STATE_DISCONNECTED
@ SND_PCM_STATE_DISCONNECTED
Definition pcm.h:317
SND_PCM_STATE_XRUN
@ SND_PCM_STATE_XRUN
Definition pcm.h:309
SND_PCM_ACCESS_MMAP_COMPLEX
@ SND_PCM_ACCESS_MMAP_COMPLEX
Definition pcm.h:116
SND_PCM_ACCESS_RW_INTERLEAVED
@ SND_PCM_ACCESS_RW_INTERLEAVED
Definition pcm.h:118
SND_PCM_ACCESS_MMAP_NONINTERLEAVED
@ SND_PCM_ACCESS_MMAP_NONINTERLEAVED
Definition pcm.h:114
SND_PCM_ACCESS_MMAP_INTERLEAVED
@ SND_PCM_ACCESS_MMAP_INTERLEAVED
Definition pcm.h:112
SND_PCM_ACCESS_RW_NONINTERLEAVED
@ SND_PCM_ACCESS_RW_NONINTERLEAVED
Definition pcm.h:120
SND_PCM_XRUN_NONE
@ SND_PCM_XRUN_NONE
Definition pcm.h:335
SND_PCM_XRUN_STOP
@ SND_PCM_XRUN_STOP
Definition pcm.h:337
SND_PCM_TSTAMP_MMAP
@ SND_PCM_TSTAMP_MMAP
Definition pcm.h:350
SND_PCM_TSTAMP_ENABLE
@ SND_PCM_TSTAMP_ENABLE
Definition pcm.h:346
SND_PCM_TSTAMP_NONE
@ SND_PCM_TSTAMP_NONE
Definition pcm.h:344
SND_PCM_SUBCLASS_GENERIC_MIX
@ SND_PCM_SUBCLASS_GENERIC_MIX
Definition pcm.h:94
SND_PCM_SUBCLASS_MULTI_MIX
@ SND_PCM_SUBCLASS_MULTI_MIX
Definition pcm.h:96
SND_PCM_TSTAMP_TYPE_GETTIMEOFDAY
@ SND_PCM_TSTAMP_TYPE_GETTIMEOFDAY
Definition pcm.h:356
SND_PCM_TSTAMP_TYPE_MONOTONIC
@ SND_PCM_TSTAMP_TYPE_MONOTONIC
Definition pcm.h:357
SND_PCM_TSTAMP_TYPE_MONOTONIC_RAW
@ SND_PCM_TSTAMP_TYPE_MONOTONIC_RAW
Definition pcm.h:358
SND_PCM_FORMAT_U16
@ SND_PCM_FORMAT_U16
Definition pcm.h:236
SND_PCM_FORMAT_U24
@ SND_PCM_FORMAT_U24
Definition pcm.h:240
SND_PCM_FORMAT_S24_LE
@ SND_PCM_FORMAT_S24_LE
Definition pcm.h:141
SND_PCM_FORMAT_FLOAT_LE
@ SND_PCM_FORMAT_FLOAT_LE
Definition pcm.h:157
SND_PCM_FORMAT_U18_3BE
@ SND_PCM_FORMAT_U18_3BE
Definition pcm.h:211
SND_PCM_FORMAT_FLOAT64
@ SND_PCM_FORMAT_FLOAT64
Definition pcm.h:248
SND_PCM_FORMAT_U20_3LE
@ SND_PCM_FORMAT_U20_3LE
Definition pcm.h:201
SND_PCM_FORMAT_S20_3BE
@ SND_PCM_FORMAT_S20_3BE
Definition pcm.h:199
SND_PCM_FORMAT_S20_BE
@ SND_PCM_FORMAT_S20_BE
Definition pcm.h:181
SND_PCM_FORMAT_MU_LAW
@ SND_PCM_FORMAT_MU_LAW
Definition pcm.h:169
SND_PCM_FORMAT_S24_3LE
@ SND_PCM_FORMAT_S24_3LE
Definition pcm.h:189
SND_PCM_FORMAT_S24_BE
@ SND_PCM_FORMAT_S24_BE
Definition pcm.h:143
SND_PCM_FORMAT_U24_3BE
@ SND_PCM_FORMAT_U24_3BE
Definition pcm.h:195
SND_PCM_FORMAT_U24_BE
@ SND_PCM_FORMAT_U24_BE
Definition pcm.h:147
SND_PCM_FORMAT_GSM
@ SND_PCM_FORMAT_GSM
Definition pcm.h:177
SND_PCM_FORMAT_U24_LE
@ SND_PCM_FORMAT_U24_LE
Definition pcm.h:145
SND_PCM_FORMAT_IEC958_SUBFRAME_BE
@ SND_PCM_FORMAT_IEC958_SUBFRAME_BE
Definition pcm.h:167
SND_PCM_FORMAT_MPEG
@ SND_PCM_FORMAT_MPEG
Definition pcm.h:175
SND_PCM_FORMAT_S20
@ SND_PCM_FORMAT_S20
Definition pcm.h:252
SND_PCM_FORMAT_U18_3LE
@ SND_PCM_FORMAT_U18_3LE
Definition pcm.h:209
SND_PCM_FORMAT_IEC958_SUBFRAME_LE
@ SND_PCM_FORMAT_IEC958_SUBFRAME_LE
Definition pcm.h:165
SND_PCM_FORMAT_U32_LE
@ SND_PCM_FORMAT_U32_LE
Definition pcm.h:153
SND_PCM_FORMAT_S24_3BE
@ SND_PCM_FORMAT_S24_3BE
Definition pcm.h:191
SND_PCM_FORMAT_S8
@ SND_PCM_FORMAT_S8
Definition pcm.h:129
SND_PCM_FORMAT_U24_3LE
@ SND_PCM_FORMAT_U24_3LE
Definition pcm.h:193
SND_PCM_FORMAT_SPECIAL
@ SND_PCM_FORMAT_SPECIAL
Definition pcm.h:187
SND_PCM_FORMAT_FLOAT
@ SND_PCM_FORMAT_FLOAT
Definition pcm.h:246
SND_PCM_FORMAT_IEC958_SUBFRAME
@ SND_PCM_FORMAT_IEC958_SUBFRAME
Definition pcm.h:250
SND_PCM_FORMAT_S18_3LE
@ SND_PCM_FORMAT_S18_3LE
Definition pcm.h:205
SND_PCM_FORMAT_S16_LE
@ SND_PCM_FORMAT_S16_LE
Definition pcm.h:133
SND_PCM_FORMAT_U20_3BE
@ SND_PCM_FORMAT_U20_3BE
Definition pcm.h:203
SND_PCM_FORMAT_FLOAT64_LE
@ SND_PCM_FORMAT_FLOAT64_LE
Definition pcm.h:161
SND_PCM_FORMAT_S20_3LE
@ SND_PCM_FORMAT_S20_3LE
Definition pcm.h:197
SND_PCM_FORMAT_FLOAT64_BE
@ SND_PCM_FORMAT_FLOAT64_BE
Definition pcm.h:163
SND_PCM_FORMAT_IMA_ADPCM
@ SND_PCM_FORMAT_IMA_ADPCM
Definition pcm.h:173
SND_PCM_FORMAT_A_LAW
@ SND_PCM_FORMAT_A_LAW
Definition pcm.h:171
SND_PCM_FORMAT_S16_BE
@ SND_PCM_FORMAT_S16_BE
Definition pcm.h:135
SND_PCM_FORMAT_S32_LE
@ SND_PCM_FORMAT_S32_LE
Definition pcm.h:149
SND_PCM_FORMAT_S16
@ SND_PCM_FORMAT_S16
Definition pcm.h:234
SND_PCM_FORMAT_UNKNOWN
@ SND_PCM_FORMAT_UNKNOWN
Definition pcm.h:127
SND_PCM_FORMAT_FLOAT_BE
@ SND_PCM_FORMAT_FLOAT_BE
Definition pcm.h:159
SND_PCM_FORMAT_U16_LE
@ SND_PCM_FORMAT_U16_LE
Definition pcm.h:137
SND_PCM_FORMAT_U32
@ SND_PCM_FORMAT_U32
Definition pcm.h:244
SND_PCM_FORMAT_U20_BE
@ SND_PCM_FORMAT_U20_BE
Definition pcm.h:185
SND_PCM_FORMAT_S32
@ SND_PCM_FORMAT_S32
Definition pcm.h:242
SND_PCM_FORMAT_S20_LE
@ SND_PCM_FORMAT_S20_LE
Definition pcm.h:179
SND_PCM_FORMAT_U32_BE
@ SND_PCM_FORMAT_U32_BE
Definition pcm.h:155
SND_PCM_FORMAT_U20
@ SND_PCM_FORMAT_U20
Definition pcm.h:254
SND_PCM_FORMAT_S24
@ SND_PCM_FORMAT_S24
Definition pcm.h:238
SND_PCM_FORMAT_S32_BE
@ SND_PCM_FORMAT_S32_BE
Definition pcm.h:151
SND_PCM_FORMAT_S18_3BE
@ SND_PCM_FORMAT_S18_3BE
Definition pcm.h:207
SND_PCM_FORMAT_U8
@ SND_PCM_FORMAT_U8
Definition pcm.h:131
SND_PCM_FORMAT_U16_BE
@ SND_PCM_FORMAT_U16_BE
Definition pcm.h:139
SND_PCM_FORMAT_U20_LE
@ SND_PCM_FORMAT_U20_LE
Definition pcm.h:183
SND_PCM_STREAM_PLAYBACK
@ SND_PCM_STREAM_PLAYBACK
Definition pcm.h:103
SND_PCM_STREAM_CAPTURE
@ SND_PCM_STREAM_CAPTURE
Definition pcm.h:105
SND_PCM_CLASS_MULTI
@ SND_PCM_CLASS_MULTI
Definition pcm.h:83
SND_PCM_CLASS_GENERIC
@ SND_PCM_CLASS_GENERIC
Definition pcm.h:81
SND_PCM_CLASS_DIGITIZER
@ SND_PCM_CLASS_DIGITIZER
Definition pcm.h:87
SND_PCM_CLASS_MODEM
@ SND_PCM_CLASS_MODEM
Definition pcm.h:85
SND_CHMAP_TYPE_NONE
@ SND_CHMAP_TYPE_NONE
Definition pcm.h:581
SND_CHMAP_TYPE_LAST
@ SND_CHMAP_TYPE_LAST
Definition pcm.h:585
SND_CHMAP_TYPE_FIXED
@ SND_CHMAP_TYPE_FIXED
Definition pcm.h:582
SND_CHMAP_TYPE_VAR
@ SND_CHMAP_TYPE_VAR
Definition pcm.h:583
SND_CHMAP_TYPE_PAIRED
@ SND_CHMAP_TYPE_PAIRED
Definition pcm.h:584
snd_pcm_audio_tstamp_config_t
Definition pcm.h:378
snd_pcm_audio_tstamp_config_t::type_requested
unsigned int type_requested
Definition pcm.h:380
snd_pcm_audio_tstamp_config_t::report_delay
unsigned int report_delay
Definition pcm.h:381
snd_pcm_audio_tstamp_report_t
Definition pcm.h:385
snd_pcm_audio_tstamp_report_t::accuracy_report
unsigned int accuracy_report
Definition pcm.h:391
snd_pcm_audio_tstamp_report_t::actual_type
unsigned int actual_type
Definition pcm.h:389
snd_pcm_audio_tstamp_report_t::valid
unsigned int valid
Definition pcm.h:388
snd_pcm_audio_tstamp_report_t::accuracy
unsigned int accuracy
Definition pcm.h:392
snd_pcm_channel_area_t
Definition pcm.h:492
snd_pcm_channel_area_t::addr
void * addr
Definition pcm.h:494
snd_pcm_channel_area_t::first
unsigned int first
Definition pcm.h:496
snd_pcm_channel_area_t::step
unsigned int step
Definition pcm.h:498
snd_pcm_chmap_query_t
Definition pcm.h:645
snd_pcm_chmap_query_t::map
snd_pcm_chmap_t map
Definition pcm.h:647
snd_pcm_chmap_query_t::type
enum snd_pcm_chmap_type type
Definition pcm.h:646
snd_pcm_chmap_t
Definition pcm.h:639
snd_pcm_chmap_t::channels
unsigned int channels
Definition pcm.h:640
snd_pcm_scope_ops_t
Definition pcm.h:1259
snd_pcm_sync_id_t
Definition pcm.h:502