| 
									
										
										
										
											2001-09-13 11:38:32 +00:00
										 |  |  | /**
 | 
					
						
							| 
									
										
										
										
											2005-01-17 17:34:31 +00:00
										 |  |  |  * \file include/pcm.h | 
					
						
							| 
									
										
										
										
											2001-09-13 11:38:32 +00:00
										 |  |  |  * \brief Application interface library for the ALSA driver | 
					
						
							| 
									
										
										
										
											2007-10-15 10:24:55 +02:00
										 |  |  |  * \author Jaroslav Kysela <perex@perex.cz> | 
					
						
							| 
									
										
										
										
											2001-09-13 11:38:32 +00:00
										 |  |  |  * \author Abramo Bagnara <abramo@alsa-project.org> | 
					
						
							|  |  |  |  * \author Takashi Iwai <tiwai@suse.de> | 
					
						
							|  |  |  |  * \date 1998-2001 | 
					
						
							|  |  |  |  * | 
					
						
							| 
									
										
										
										
											2001-11-19 08:14:21 +00:00
										 |  |  |  * Application interface library for the ALSA driver. | 
					
						
							|  |  |  |  * See the \ref pcm page for more details. | 
					
						
							| 
									
										
										
										
											2005-01-17 17:34:31 +00:00
										 |  |  |  */ | 
					
						
							|  |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2001-09-13 11:38:32 +00:00
										 |  |  |  *   This library is free software; you can redistribute it and/or modify | 
					
						
							| 
									
										
										
										
											2001-12-30 09:22:54 +00:00
										 |  |  |  *   it under the terms of the GNU Lesser General Public License as | 
					
						
							|  |  |  |  *   published by the Free Software Foundation; either version 2.1 of | 
					
						
							| 
									
										
										
										
											2001-09-13 11:38:32 +00:00
										 |  |  |  *   the License, or (at your option) any later version. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  *   This program is distributed in the hope that it will be useful, | 
					
						
							|  |  |  |  *   but WITHOUT ANY WARRANTY; without even the implied warranty of | 
					
						
							|  |  |  |  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
					
						
							| 
									
										
										
										
											2001-12-30 09:22:54 +00:00
										 |  |  |  *   GNU Lesser General Public License for more details. | 
					
						
							| 
									
										
										
										
											2001-09-13 11:38:32 +00:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2001-12-30 09:22:54 +00:00
										 |  |  |  *   You should have received a copy of the GNU Lesser General Public | 
					
						
							| 
									
										
										
										
											2001-09-13 11:38:32 +00:00
										 |  |  |  *   License along with this library; if not, write to the Free Software | 
					
						
							| 
									
										
										
										
											2017-11-14 14:29:26 +01:00
										 |  |  |  *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA | 
					
						
							| 
									
										
										
										
											2001-09-13 11:38:32 +00:00
										 |  |  |  * | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef __ALSA_PCM_H
 | 
					
						
							|  |  |  | #define __ALSA_PCM_H
 | 
					
						
							| 
									
										
										
										
											1998-11-27 15:06:26 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | #ifdef __cplusplus
 | 
					
						
							|  |  |  | extern "C" { | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-14 16:18:11 +02:00
										 |  |  | #include <stdint.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-04-24 13:02:58 +00:00
										 |  |  | /**
 | 
					
						
							|  |  |  |  *  \defgroup PCM PCM Interface | 
					
						
							| 
									
										
										
										
											2001-11-19 08:14:21 +00:00
										 |  |  |  *  See the \ref pcm page for more details. | 
					
						
							| 
									
										
										
										
											2001-04-24 13:02:58 +00:00
										 |  |  |  *  \{ | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-08-15 12:12:16 +00:00
										 |  |  | /** dlsym version for interface entry callback */ | 
					
						
							|  |  |  | #define SND_PCM_DLSYM_VERSION		_dlsym_pcm_001
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | /** PCM generic info container */ | 
					
						
							| 
									
										
										
										
											2001-02-04 17:03:17 +00:00
										 |  |  | typedef struct _snd_pcm_info snd_pcm_info_t; | 
					
						
							| 
									
										
										
										
											2012-01-19 12:36:39 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | /** PCM hardware configuration space container
 | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  *  snd_pcm_hw_params_t is an opaque structure which contains a set of possible | 
					
						
							|  |  |  |  *  PCM hardware configurations. For example, a given instance might include a | 
					
						
							|  |  |  |  *  range of buffer sizes, a range of period sizes, and a set of several sample | 
					
						
							|  |  |  |  *  formats. Some subset of all possible combinations these sets may be valid, | 
					
						
							|  |  |  |  *  but not necessarily any combination will be valid. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  *  When a parameter is set or restricted using a snd_pcm_hw_params_set* | 
					
						
							|  |  |  |  *  function, all of the other ranges will be updated to exclude as many | 
					
						
							|  |  |  |  *  impossible configurations as possible. Attempting to set a parameter | 
					
						
							|  |  |  |  *  outside of its acceptable range will result in the function failing | 
					
						
							|  |  |  |  *  and an error code being returned. | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2001-02-04 17:03:17 +00:00
										 |  |  | typedef struct _snd_pcm_hw_params snd_pcm_hw_params_t; | 
					
						
							| 
									
										
										
										
											2012-01-19 12:36:39 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | /** PCM software configuration container */ | 
					
						
							| 
									
										
										
										
											2001-02-04 17:03:17 +00:00
										 |  |  | typedef struct _snd_pcm_sw_params snd_pcm_sw_params_t; | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | /** PCM status container */ | 
					
						
							| 
									
										
										
										
											2001-04-13 10:54:56 +00:00
										 |  |  |  typedef struct _snd_pcm_status snd_pcm_status_t; | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | /** PCM access types mask */ | 
					
						
							| 
									
										
										
										
											2001-02-04 17:03:17 +00:00
										 |  |  | typedef struct _snd_pcm_access_mask snd_pcm_access_mask_t; | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | /** PCM formats mask */ | 
					
						
							| 
									
										
										
										
											2001-02-04 17:03:17 +00:00
										 |  |  | typedef struct _snd_pcm_format_mask snd_pcm_format_mask_t; | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | /** PCM subformats mask */ | 
					
						
							| 
									
										
										
										
											2001-02-04 17:03:17 +00:00
										 |  |  | typedef struct _snd_pcm_subformat_mask snd_pcm_subformat_mask_t; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | /** PCM class */ | 
					
						
							|  |  |  | typedef enum _snd_pcm_class { | 
					
						
							|  |  |  | 	/** standard device */ | 
					
						
							| 
									
										
										
										
											2001-11-19 08:14:21 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_CLASS_GENERIC = 0, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** multichannel device */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_CLASS_MULTI, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** software modem device */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_CLASS_MODEM, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** digitizer device */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_CLASS_DIGITIZER, | 
					
						
							| 
									
										
										
										
											2002-02-05 11:36:20 +00:00
										 |  |  | 	SND_PCM_CLASS_LAST = SND_PCM_CLASS_DIGITIZER | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | } snd_pcm_class_t; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** PCM subclass */ | 
					
						
							|  |  |  | typedef enum _snd_pcm_subclass { | 
					
						
							|  |  |  | 	/** subdevices are mixed together */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_SUBCLASS_GENERIC_MIX = 0, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** multichannel subdevices are mixed together */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_SUBCLASS_MULTI_MIX, | 
					
						
							| 
									
										
										
										
											2002-02-05 11:36:20 +00:00
										 |  |  | 	SND_PCM_SUBCLASS_LAST = SND_PCM_SUBCLASS_MULTI_MIX | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | } snd_pcm_subclass_t; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** PCM stream (direction) */ | 
					
						
							|  |  |  | typedef enum _snd_pcm_stream { | 
					
						
							|  |  |  | 	/** Playback stream */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_STREAM_PLAYBACK = 0, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Capture stream */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_STREAM_CAPTURE, | 
					
						
							| 
									
										
										
										
											2002-02-05 11:36:20 +00:00
										 |  |  | 	SND_PCM_STREAM_LAST = SND_PCM_STREAM_CAPTURE | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | } snd_pcm_stream_t; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** PCM access type */ | 
					
						
							|  |  |  | typedef enum _snd_pcm_access { | 
					
						
							|  |  |  | 	/** mmap access with simple interleaved channels */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_ACCESS_MMAP_INTERLEAVED = 0, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** mmap access with simple non interleaved channels */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_ACCESS_MMAP_NONINTERLEAVED, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** mmap access with complex placement */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_ACCESS_MMAP_COMPLEX, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** snd_pcm_readi/snd_pcm_writei access */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_ACCESS_RW_INTERLEAVED, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** snd_pcm_readn/snd_pcm_writen access */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_ACCESS_RW_NONINTERLEAVED, | 
					
						
							| 
									
										
										
										
											2002-02-05 11:36:20 +00:00
										 |  |  | 	SND_PCM_ACCESS_LAST = SND_PCM_ACCESS_RW_NONINTERLEAVED | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | } snd_pcm_access_t; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** PCM sample format */ | 
					
						
							|  |  |  | typedef enum _snd_pcm_format { | 
					
						
							|  |  |  | 	/** Unknown */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_UNKNOWN = -1, | 
					
						
							|  |  |  | 	/** Signed 8 bit */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_S8 = 0, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Unsigned 8 bit */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_U8, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Signed 16 bit Little Endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_S16_LE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Signed 16 bit Big Endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_S16_BE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Unsigned 16 bit Little Endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_U16_LE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Unsigned 16 bit Big Endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_U16_BE, | 
					
						
							| 
									
										
										
										
											2006-10-23 11:34:00 +02:00
										 |  |  | 	/** Signed 24 bit Little Endian using low three bytes in 32-bit word */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_S24_LE, | 
					
						
							| 
									
										
										
										
											2006-10-23 11:34:00 +02:00
										 |  |  | 	/** Signed 24 bit Big Endian using low three bytes in 32-bit word */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_S24_BE, | 
					
						
							| 
									
										
										
										
											2006-10-23 11:34:00 +02:00
										 |  |  | 	/** Unsigned 24 bit Little Endian using low three bytes in 32-bit word */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_U24_LE, | 
					
						
							| 
									
										
										
										
											2006-10-23 11:34:00 +02:00
										 |  |  | 	/** Unsigned 24 bit Big Endian using low three bytes in 32-bit word */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_U24_BE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Signed 32 bit Little Endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_S32_LE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Signed 32 bit Big Endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_S32_BE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Unsigned 32 bit Little Endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_U32_LE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Unsigned 32 bit Big Endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_U32_BE, | 
					
						
							| 
									
										
										
										
											2001-11-26 15:16:01 +00:00
										 |  |  | 	/** Float 32 bit Little Endian, Range -1.0 to 1.0 */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_FLOAT_LE, | 
					
						
							| 
									
										
										
										
											2001-11-26 15:16:01 +00:00
										 |  |  | 	/** Float 32 bit Big Endian, Range -1.0 to 1.0 */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_FLOAT_BE, | 
					
						
							| 
									
										
										
										
											2001-11-26 15:16:01 +00:00
										 |  |  | 	/** Float 64 bit Little Endian, Range -1.0 to 1.0 */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_FLOAT64_LE, | 
					
						
							| 
									
										
										
										
											2001-11-26 15:16:01 +00:00
										 |  |  | 	/** Float 64 bit Big Endian, Range -1.0 to 1.0 */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_FLOAT64_BE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** IEC-958 Little Endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_IEC958_SUBFRAME_LE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** IEC-958 Big Endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_IEC958_SUBFRAME_BE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Mu-Law */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_MU_LAW, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** A-Law */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_A_LAW, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Ima-ADPCM */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_IMA_ADPCM, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** MPEG */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_MPEG, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** GSM */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_GSM, | 
					
						
							| 
									
										
										
										
											2017-12-14 14:52:07 +01:00
										 |  |  | 	/** Signed 20bit Little Endian in 4bytes format, LSB justified */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_S20_LE, | 
					
						
							|  |  |  | 	/** Signed 20bit Big Endian in 4bytes format, LSB justified */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_S20_BE, | 
					
						
							|  |  |  | 	/** Unsigned 20bit Little Endian in 4bytes format, LSB justified */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_U20_LE, | 
					
						
							|  |  |  | 	/** Unsigned 20bit Big Endian in 4bytes format, LSB justified */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_U20_BE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Special */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_SPECIAL = 31, | 
					
						
							| 
									
										
										
										
											2002-06-26 02:04:11 +00:00
										 |  |  | 	/** Signed 24bit Little Endian in 3bytes format */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_S24_3LE = 32, | 
					
						
							|  |  |  | 	/** Signed 24bit Big Endian in 3bytes format */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_S24_3BE, | 
					
						
							|  |  |  | 	/** Unsigned 24bit Little Endian in 3bytes format */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_U24_3LE, | 
					
						
							|  |  |  | 	/** Unsigned 24bit Big Endian in 3bytes format */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_U24_3BE, | 
					
						
							|  |  |  | 	/** Signed 20bit Little Endian in 3bytes format */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_S20_3LE, | 
					
						
							|  |  |  | 	/** Signed 20bit Big Endian in 3bytes format */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_S20_3BE, | 
					
						
							|  |  |  | 	/** Unsigned 20bit Little Endian in 3bytes format */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_U20_3LE, | 
					
						
							|  |  |  | 	/** Unsigned 20bit Big Endian in 3bytes format */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_U20_3BE, | 
					
						
							|  |  |  | 	/** Signed 18bit Little Endian in 3bytes format */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_S18_3LE, | 
					
						
							|  |  |  | 	/** Signed 18bit Big Endian in 3bytes format */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_S18_3BE, | 
					
						
							|  |  |  | 	/** Unsigned 18bit Little Endian in 3bytes format */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_U18_3LE, | 
					
						
							|  |  |  | 	/** Unsigned 18bit Big Endian in 3bytes format */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_U18_3BE, | 
					
						
							| 
									
										
										
										
											2013-04-18 10:37:50 +02:00
										 |  |  | 	/* G.723 (ADPCM) 24 kbit/s, 8 samples in 3 bytes */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_G723_24, | 
					
						
							|  |  |  | 	/* G.723 (ADPCM) 24 kbit/s, 1 sample in 1 byte */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_G723_24_1B, | 
					
						
							|  |  |  | 	/* G.723 (ADPCM) 40 kbit/s, 8 samples in 3 bytes */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_G723_40, | 
					
						
							|  |  |  | 	/* G.723 (ADPCM) 40 kbit/s, 1 sample in 1 byte */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_G723_40_1B, | 
					
						
							|  |  |  | 	/* Direct Stream Digital (DSD) in 1-byte samples (x8) */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_DSD_U8, | 
					
						
							|  |  |  | 	/* Direct Stream Digital (DSD) in 2-byte samples (x16) */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_DSD_U16_LE, | 
					
						
							| 
									
										
										
										
											2014-09-10 09:00:28 +02:00
										 |  |  | 	/* Direct Stream Digital (DSD) in 4-byte samples (x32) */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_DSD_U32_LE, | 
					
						
							| 
									
										
										
										
											2014-11-21 16:04:47 +02:00
										 |  |  | 	/* Direct Stream Digital (DSD) in 2-byte samples (x16) */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_DSD_U16_BE, | 
					
						
							|  |  |  | 	/* Direct Stream Digital (DSD) in 4-byte samples (x32) */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_DSD_U32_BE, | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_LAST = SND_PCM_FORMAT_DSD_U32_BE, | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #if __BYTE_ORDER == __LITTLE_ENDIAN
 | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Signed 16 bit CPU endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_S16 = SND_PCM_FORMAT_S16_LE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Unsigned 16 bit CPU endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_U16 = SND_PCM_FORMAT_U16_LE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Signed 24 bit CPU endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_S24 = SND_PCM_FORMAT_S24_LE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Unsigned 24 bit CPU endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_U24 = SND_PCM_FORMAT_U24_LE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Signed 32 bit CPU endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_S32 = SND_PCM_FORMAT_S32_LE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Unsigned 32 bit CPU endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_U32 = SND_PCM_FORMAT_U32_LE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Float 32 bit CPU endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_FLOAT = SND_PCM_FORMAT_FLOAT_LE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Float 64 bit CPU endian */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_FORMAT_FLOAT64 = SND_PCM_FORMAT_FLOAT64_LE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** IEC-958 CPU Endian */ | 
					
						
							| 
									
										
										
										
											2017-12-14 14:52:07 +01:00
										 |  |  | 	SND_PCM_FORMAT_IEC958_SUBFRAME = SND_PCM_FORMAT_IEC958_SUBFRAME_LE, | 
					
						
							|  |  |  | 	/** Signed 20bit in 4bytes format, LSB justified, CPU Endian */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_S20 = SND_PCM_FORMAT_S20_LE, | 
					
						
							|  |  |  | 	/** Unsigned 20bit in 4bytes format, LSB justified, CPU Endian */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_U20 = SND_PCM_FORMAT_U20_LE, | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | #elif __BYTE_ORDER == __BIG_ENDIAN
 | 
					
						
							|  |  |  | 	/** Signed 16 bit CPU endian */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_S16 = SND_PCM_FORMAT_S16_BE, | 
					
						
							|  |  |  | 	/** Unsigned 16 bit CPU endian */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_U16 = SND_PCM_FORMAT_U16_BE, | 
					
						
							|  |  |  | 	/** Signed 24 bit CPU endian */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_S24 = SND_PCM_FORMAT_S24_BE, | 
					
						
							|  |  |  | 	/** Unsigned 24 bit CPU endian */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_U24 = SND_PCM_FORMAT_U24_BE, | 
					
						
							|  |  |  | 	/** Signed 32 bit CPU endian */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_S32 = SND_PCM_FORMAT_S32_BE, | 
					
						
							|  |  |  | 	/** Unsigned 32 bit CPU endian */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_U32 = SND_PCM_FORMAT_U32_BE, | 
					
						
							|  |  |  | 	/** Float 32 bit CPU endian */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_FLOAT = SND_PCM_FORMAT_FLOAT_BE, | 
					
						
							|  |  |  | 	/** Float 64 bit CPU endian */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_FLOAT64 = SND_PCM_FORMAT_FLOAT64_BE, | 
					
						
							|  |  |  | 	/** IEC-958 CPU Endian */ | 
					
						
							| 
									
										
										
										
											2017-12-14 14:52:07 +01:00
										 |  |  | 	SND_PCM_FORMAT_IEC958_SUBFRAME = SND_PCM_FORMAT_IEC958_SUBFRAME_BE, | 
					
						
							|  |  |  | 	/** Signed 20bit in 4bytes format, LSB justified, CPU Endian */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_S20 = SND_PCM_FORMAT_S20_BE, | 
					
						
							|  |  |  | 	/** Unsigned 20bit in 4bytes format, LSB justified, CPU Endian */ | 
					
						
							|  |  |  | 	SND_PCM_FORMAT_U20 = SND_PCM_FORMAT_U20_BE, | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #error "Unknown endian"
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | } snd_pcm_format_t; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** PCM sample subformat */ | 
					
						
							|  |  |  | typedef enum _snd_pcm_subformat { | 
					
						
							| 
									
										
										
										
											2023-08-04 10:07:19 +02:00
										 |  |  | 	/** Unknown */ | 
					
						
							|  |  |  | 	SND_PCM_SUBFORMAT_UNKNOWN = -1, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Standard */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_SUBFORMAT_STD = 0, | 
					
						
							| 
									
										
										
										
											2023-08-04 10:13:40 +02:00
										 |  |  | 	/** Maximum bits based on PCM format */ | 
					
						
							|  |  |  | 	SND_PCM_SUBFORMAT_MSBITS_MAX = 1, | 
					
						
							|  |  |  | 	/** 20 most significant bits */ | 
					
						
							|  |  |  | 	SND_PCM_SUBFORMAT_MSBITS_20 = 2, | 
					
						
							|  |  |  | 	/** 24 most significant bits */ | 
					
						
							|  |  |  | 	SND_PCM_SUBFORMAT_MSBITS_24 = 3, | 
					
						
							|  |  |  | 	SND_PCM_SUBFORMAT_LAST = SND_PCM_SUBFORMAT_MSBITS_24 | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | } snd_pcm_subformat_t; | 
					
						
							| 
									
										
										
										
											2001-02-04 17:03:17 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | /** PCM state */ | 
					
						
							|  |  |  | typedef enum _snd_pcm_state { | 
					
						
							|  |  |  | 	/** Open */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_STATE_OPEN = 0, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Setup installed */  | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_STATE_SETUP, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Ready to start */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_STATE_PREPARED, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Running */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_STATE_RUNNING, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Stopped: underrun (playback) or overrun (capture) detected */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_STATE_XRUN, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Draining: running (playback) or stopped (capture) */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_STATE_DRAINING, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Paused */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_STATE_PAUSED, | 
					
						
							| 
									
										
										
										
											2001-09-26 13:57:04 +00:00
										 |  |  | 	/** Hardware is suspended */ | 
					
						
							|  |  |  | 	SND_PCM_STATE_SUSPENDED, | 
					
						
							| 
									
										
										
										
											2004-01-19 19:48:27 +00:00
										 |  |  | 	/** Hardware is disconnected */ | 
					
						
							|  |  |  | 	SND_PCM_STATE_DISCONNECTED, | 
					
						
							| 
									
										
										
										
											2018-03-27 15:16:41 +02:00
										 |  |  | 	SND_PCM_STATE_LAST = SND_PCM_STATE_DISCONNECTED, | 
					
						
							|  |  |  | 	/** Private - used internally in the library - do not use*/ | 
					
						
							|  |  |  | 	SND_PCM_STATE_PRIVATE1 = 1024 | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | } snd_pcm_state_t; | 
					
						
							| 
									
										
										
										
											2001-01-30 16:51:26 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | /** PCM start mode */ | 
					
						
							|  |  |  | typedef enum _snd_pcm_start { | 
					
						
							|  |  |  | 	/** Automatic start on data read/write */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_START_DATA = 0, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Explicit start */ | 
					
						
							| 
									
										
										
										
											2001-04-19 21:18:23 +00:00
										 |  |  | 	SND_PCM_START_EXPLICIT, | 
					
						
							| 
									
										
										
										
											2002-02-05 11:36:20 +00:00
										 |  |  | 	SND_PCM_START_LAST = SND_PCM_START_EXPLICIT | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | } snd_pcm_start_t; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** PCM xrun mode */ | 
					
						
							|  |  |  | typedef enum _snd_pcm_xrun { | 
					
						
							|  |  |  | 	/** Xrun detection disabled */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_XRUN_NONE = 0, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Stop on xrun detection */ | 
					
						
							| 
									
										
										
										
											2001-04-19 21:18:23 +00:00
										 |  |  | 	SND_PCM_XRUN_STOP, | 
					
						
							| 
									
										
										
										
											2002-02-05 11:36:20 +00:00
										 |  |  | 	SND_PCM_XRUN_LAST = SND_PCM_XRUN_STOP | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | } snd_pcm_xrun_t; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** PCM timestamp mode */ | 
					
						
							|  |  |  | typedef enum _snd_pcm_tstamp { | 
					
						
							|  |  |  | 	/** No timestamp */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_TSTAMP_NONE = 0, | 
					
						
							| 
									
										
										
										
											2008-01-11 08:54:07 +01:00
										 |  |  | 	/** Update timestamp at every hardware position update */ | 
					
						
							|  |  |  | 	SND_PCM_TSTAMP_ENABLE, | 
					
						
							| 
									
										
										
										
											2008-01-14 17:15:13 +01:00
										 |  |  | 	/** Equivalent with #SND_PCM_TSTAMP_ENABLE,
 | 
					
						
							|  |  |  | 	 * just for compatibility with older versions | 
					
						
							|  |  |  | 	 */ | 
					
						
							|  |  |  | 	SND_PCM_TSTAMP_MMAP = SND_PCM_TSTAMP_ENABLE, | 
					
						
							| 
									
										
										
										
											2008-01-11 08:54:07 +01:00
										 |  |  | 	SND_PCM_TSTAMP_LAST = SND_PCM_TSTAMP_ENABLE | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | } snd_pcm_tstamp_t; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-29 16:01:33 +01:00
										 |  |  | /** PCM timestamp type */ | 
					
						
							| 
									
										
										
										
											2014-07-10 14:26:37 +02:00
										 |  |  | typedef enum _snd_pcm_tstamp_type { | 
					
						
							| 
									
										
										
										
											2015-08-24 20:37:29 +02:00
										 |  |  | 	SND_PCM_TSTAMP_TYPE_GETTIMEOFDAY = 0,	/**< gettimeofday equivalent */ | 
					
						
							|  |  |  | 	SND_PCM_TSTAMP_TYPE_MONOTONIC,	/**< posix_clock_monotonic equivalent */ | 
					
						
							|  |  |  | 	SND_PCM_TSTAMP_TYPE_MONOTONIC_RAW,	/**< monotonic_raw (no NTP) */ | 
					
						
							| 
									
										
										
										
											2014-07-10 14:26:37 +02:00
										 |  |  | 	SND_PCM_TSTAMP_TYPE_LAST = SND_PCM_TSTAMP_TYPE_MONOTONIC_RAW, | 
					
						
							|  |  |  | } snd_pcm_tstamp_type_t; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-29 16:01:33 +01:00
										 |  |  | /** PCM audio timestamp type */ | 
					
						
							| 
									
										
										
										
											2020-12-16 19:55:22 +01:00
										 |  |  | typedef enum _snd_pcm_audio_tstamp_type { | 
					
						
							|  |  |  | 	/**
 | 
					
						
							|  |  |  | 	 * first definition for backwards compatibility only, | 
					
						
							|  |  |  | 	 * maps to wallclock/link time for HDAudio playback and DEFAULT/DMA time for everything else | 
					
						
							|  |  |  | 	 */ | 
					
						
							|  |  |  | 	SND_PCM_AUDIO_TSTAMP_TYPE_COMPAT = 0, | 
					
						
							|  |  |  | 	SND_PCM_AUDIO_TSTAMP_TYPE_DEFAULT = 1,           /**< DMA time, reported as per hw_ptr */ | 
					
						
							|  |  |  | 	SND_PCM_AUDIO_TSTAMP_TYPE_LINK = 2,	           /**< link time reported by sample or wallclock counter, reset on startup */ | 
					
						
							|  |  |  | 	SND_PCM_AUDIO_TSTAMP_TYPE_LINK_ABSOLUTE = 3,	   /**< link time reported by sample or wallclock counter, not reset on startup */ | 
					
						
							|  |  |  | 	SND_PCM_AUDIO_TSTAMP_TYPE_LINK_ESTIMATED = 4,    /**< link time estimated indirectly */ | 
					
						
							|  |  |  | 	SND_PCM_AUDIO_TSTAMP_TYPE_LINK_SYNCHRONIZED = 5, /**< link time synchronized with system time */ | 
					
						
							| 
									
										
										
										
											2020-12-22 16:10:16 +01:00
										 |  |  | 	SND_PCM_AUDIO_TSTAMP_TYPE_LAST = SND_PCM_AUDIO_TSTAMP_TYPE_LINK_SYNCHRONIZED | 
					
						
							| 
									
										
										
										
											2020-12-16 19:55:22 +01:00
										 |  |  | } snd_pcm_audio_tstamp_type_t; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-29 16:01:33 +01:00
										 |  |  | /** PCM audio timestamp config */ | 
					
						
							| 
									
										
										
										
											2015-07-01 15:40:55 -05:00
										 |  |  | typedef struct _snd_pcm_audio_tstamp_config { | 
					
						
							|  |  |  | 	/* 5 of max 16 bits used */ | 
					
						
							| 
									
										
										
										
											2023-07-29 16:01:33 +01:00
										 |  |  | 	unsigned int type_requested:4; /**< requested audio tstamp type */ | 
					
						
							|  |  |  | 	unsigned int report_delay:1; /**< add total delay to A/D or D/A */ | 
					
						
							| 
									
										
										
										
											2015-07-01 15:40:55 -05:00
										 |  |  | } snd_pcm_audio_tstamp_config_t; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-29 16:01:33 +01:00
										 |  |  | /** PCM audio timestamp report */ | 
					
						
							| 
									
										
										
										
											2015-07-01 15:40:55 -05:00
										 |  |  | typedef struct _snd_pcm_audio_tstamp_report { | 
					
						
							|  |  |  | 	/* 6 of max 16 bits used for bit-fields */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-29 16:01:33 +01:00
										 |  |  | 	unsigned int valid:1; /**< for backwards compatibility */ | 
					
						
							|  |  |  | 	unsigned int actual_type:4; /**< actual type if hardware could not support requested timestamp */ | 
					
						
							| 
									
										
										
										
											2015-07-01 15:40:55 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-29 16:01:33 +01:00
										 |  |  | 	unsigned int accuracy_report:1; /**< 0 if accuracy unknown, 1 if accuracy field is valid */ | 
					
						
							|  |  |  | 	unsigned int accuracy; /**< up to 4.29s in ns units, will be packed in separate field  */ | 
					
						
							| 
									
										
										
										
											2015-07-01 15:40:55 -05:00
										 |  |  | } snd_pcm_audio_tstamp_report_t; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | /** Unsigned frames quantity */ | 
					
						
							| 
									
										
										
										
											2001-08-22 06:39:08 +00:00
										 |  |  | typedef unsigned long snd_pcm_uframes_t; | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | /** Signed frames quantity */ | 
					
						
							| 
									
										
										
										
											2001-08-22 06:39:08 +00:00
										 |  |  | typedef long snd_pcm_sframes_t; | 
					
						
							| 
									
										
										
										
											2001-01-30 16:51:26 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-01-28 18:11:45 +00:00
										 |  |  | /** Non blocking mode (flag for open mode) \hideinitializer */ | 
					
						
							| 
									
										
										
										
											2008-01-11 17:21:44 +01:00
										 |  |  | #define SND_PCM_NONBLOCK		0x00000001
 | 
					
						
							| 
									
										
										
										
											2002-01-28 18:11:45 +00:00
										 |  |  | /** Async notification (flag for open mode) \hideinitializer */ | 
					
						
							| 
									
										
										
										
											2008-01-11 17:21:44 +01:00
										 |  |  | #define SND_PCM_ASYNC			0x00000002
 | 
					
						
							| 
									
										
										
										
											2023-05-03 11:42:35 +02:00
										 |  |  | /** Return EINTR instead blocking (wait operation) */ | 
					
						
							|  |  |  | #define SND_PCM_EINTR			0x00000080
 | 
					
						
							| 
									
										
										
										
											2013-04-08 13:28:03 +02:00
										 |  |  | /** In an abort state (internal, not allowed for open) */ | 
					
						
							|  |  |  | #define SND_PCM_ABORT			0x00008000
 | 
					
						
							| 
									
										
										
										
											2008-01-11 17:21:44 +01:00
										 |  |  | /** Disable automatic (but not forced!) rate resamplinig */ | 
					
						
							|  |  |  | #define SND_PCM_NO_AUTO_RESAMPLE	0x00010000
 | 
					
						
							|  |  |  | /** Disable automatic (but not forced!) channel conversion */ | 
					
						
							|  |  |  | #define SND_PCM_NO_AUTO_CHANNELS	0x00020000
 | 
					
						
							|  |  |  | /** Disable automatic (but not forced!) format conversion */ | 
					
						
							|  |  |  | #define SND_PCM_NO_AUTO_FORMAT		0x00040000
 | 
					
						
							|  |  |  | /** Disable soft volume control */ | 
					
						
							|  |  |  | #define SND_PCM_NO_SOFTVOL		0x00080000
 | 
					
						
							| 
									
										
										
										
											1998-11-27 15:06:26 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | /** PCM handle */ | 
					
						
							| 
									
										
										
										
											2000-11-20 20:10:46 +00:00
										 |  |  | typedef struct _snd_pcm snd_pcm_t; | 
					
						
							| 
									
										
										
										
											2000-05-08 18:53:38 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | /** PCM type */ | 
					
						
							| 
									
										
										
										
											2001-02-05 15:44:42 +00:00
										 |  |  | enum _snd_pcm_type { | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Kernel level PCM */ | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_TYPE_HW = 0, | 
					
						
							| 
									
										
										
										
											2001-06-04 18:04:18 +00:00
										 |  |  | 	/** Hooked PCM */ | 
					
						
							|  |  |  | 	SND_PCM_TYPE_HOOKS, | 
					
						
							| 
									
										
										
										
											2005-09-21 08:24:31 +00:00
										 |  |  | 	/** One or more linked PCM with exclusive access to selected
 | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	    channels */ | 
					
						
							| 
									
										
										
										
											2000-09-24 09:57:26 +00:00
										 |  |  | 	SND_PCM_TYPE_MULTI, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** File writing plugin */ | 
					
						
							| 
									
										
										
										
											2000-09-24 09:57:26 +00:00
										 |  |  | 	SND_PCM_TYPE_FILE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Null endpoint PCM */ | 
					
						
							| 
									
										
										
										
											2000-09-24 09:57:26 +00:00
										 |  |  | 	SND_PCM_TYPE_NULL, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Shared memory client PCM */ | 
					
						
							| 
									
										
										
										
											2000-10-14 10:31:34 +00:00
										 |  |  | 	SND_PCM_TYPE_SHM, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** INET client PCM (not yet implemented) */ | 
					
						
							| 
									
										
										
										
											2000-10-14 10:31:34 +00:00
										 |  |  | 	SND_PCM_TYPE_INET, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Copying plugin */ | 
					
						
							| 
									
										
										
										
											2000-12-11 11:16:07 +00:00
										 |  |  | 	SND_PCM_TYPE_COPY, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Linear format conversion PCM */ | 
					
						
							| 
									
										
										
										
											2000-09-24 09:57:26 +00:00
										 |  |  | 	SND_PCM_TYPE_LINEAR, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** A-Law format conversion PCM */ | 
					
						
							| 
									
										
										
										
											2000-09-24 09:57:26 +00:00
										 |  |  | 	SND_PCM_TYPE_ALAW, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Mu-Law format conversion PCM */ | 
					
						
							| 
									
										
										
										
											2000-09-24 09:57:26 +00:00
										 |  |  | 	SND_PCM_TYPE_MULAW, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** IMA-ADPCM format conversion PCM */ | 
					
						
							| 
									
										
										
										
											2000-09-24 09:57:26 +00:00
										 |  |  | 	SND_PCM_TYPE_ADPCM, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Rate conversion PCM */ | 
					
						
							| 
									
										
										
										
											2000-09-24 09:57:26 +00:00
										 |  |  | 	SND_PCM_TYPE_RATE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Attenuated static route PCM */ | 
					
						
							| 
									
										
										
										
											2000-09-24 09:57:26 +00:00
										 |  |  | 	SND_PCM_TYPE_ROUTE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Format adjusted PCM */ | 
					
						
							| 
									
										
										
										
											2000-09-24 09:57:26 +00:00
										 |  |  | 	SND_PCM_TYPE_PLUG, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Sharing PCM */ | 
					
						
							| 
									
										
										
										
											2000-10-07 16:59:48 +00:00
										 |  |  | 	SND_PCM_TYPE_SHARE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Meter plugin */ | 
					
						
							| 
									
										
										
										
											2001-03-01 22:49:15 +00:00
										 |  |  | 	SND_PCM_TYPE_METER, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Mixing PCM */ | 
					
						
							| 
									
										
										
										
											2000-10-07 16:59:48 +00:00
										 |  |  | 	SND_PCM_TYPE_MIX, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Attenuated dynamic route PCM (not yet implemented) */ | 
					
						
							| 
									
										
										
										
											2000-09-24 09:57:26 +00:00
										 |  |  | 	SND_PCM_TYPE_DROUTE, | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** Loopback server plugin (not yet implemented) */ | 
					
						
							| 
									
										
										
										
											2000-09-24 09:57:26 +00:00
										 |  |  | 	SND_PCM_TYPE_LBSERVER, | 
					
						
							| 
									
										
										
										
											2001-11-26 16:08:49 +00:00
										 |  |  | 	/** Linear Integer <-> Linear Float format conversion PCM */ | 
					
						
							| 
									
										
										
										
											2001-11-26 15:19:44 +00:00
										 |  |  | 	SND_PCM_TYPE_LINEAR_FLOAT, | 
					
						
							| 
									
										
										
										
											2001-11-25 09:55:53 +00:00
										 |  |  | 	/** LADSPA integration plugin */ | 
					
						
							| 
									
										
										
										
											2003-02-04 14:55:19 +00:00
										 |  |  | 	SND_PCM_TYPE_LADSPA, | 
					
						
							|  |  |  | 	/** Direct Mixing plugin */ | 
					
						
							| 
									
										
										
										
											2003-02-12 21:57:49 +00:00
										 |  |  | 	SND_PCM_TYPE_DMIX, | 
					
						
							|  |  |  | 	/** Jack Audio Connection Kit plugin */ | 
					
						
							|  |  |  | 	SND_PCM_TYPE_JACK, | 
					
						
							| 
									
										
										
										
											2003-03-18 20:37:42 +00:00
										 |  |  | 	/** Direct Snooping plugin */ | 
					
						
							|  |  |  | 	SND_PCM_TYPE_DSNOOP, | 
					
						
							|  |  |  | 	/** Direct Sharing plugin */ | 
					
						
							|  |  |  | 	SND_PCM_TYPE_DSHARE, | 
					
						
							| 
									
										
										
										
											2004-05-04 15:13:23 +00:00
										 |  |  | 	/** IEC958 subframe plugin */ | 
					
						
							|  |  |  | 	SND_PCM_TYPE_IEC958, | 
					
						
							| 
									
										
										
										
											2004-12-27 14:40:19 +00:00
										 |  |  | 	/** Soft volume plugin */ | 
					
						
							|  |  |  | 	SND_PCM_TYPE_SOFTVOL, | 
					
						
							| 
									
										
										
										
											2005-02-08 20:57:51 +00:00
										 |  |  | 	/** External I/O plugin */ | 
					
						
							|  |  |  | 	SND_PCM_TYPE_IOPLUG, | 
					
						
							| 
									
										
										
										
											2005-02-14 13:33:08 +00:00
										 |  |  | 	/** External filter plugin */ | 
					
						
							|  |  |  | 	SND_PCM_TYPE_EXTPLUG, | 
					
						
							| 
									
										
										
										
											2007-07-11 17:44:09 +02:00
										 |  |  | 	/** Mmap-emulation plugin */ | 
					
						
							|  |  |  | 	SND_PCM_TYPE_MMAP_EMUL, | 
					
						
							|  |  |  | 	SND_PCM_TYPE_LAST = SND_PCM_TYPE_MMAP_EMUL | 
					
						
							| 
									
										
										
										
											2001-02-05 15:44:42 +00:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | /** PCM type */ | 
					
						
							| 
									
										
										
										
											2001-02-05 15:44:42 +00:00
										 |  |  | typedef enum _snd_pcm_type snd_pcm_type_t; | 
					
						
							| 
									
										
										
										
											2000-07-04 19:29:16 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | /** PCM area specification */ | 
					
						
							| 
									
										
										
										
											2000-11-20 20:10:46 +00:00
										 |  |  | typedef struct _snd_pcm_channel_area { | 
					
						
							| 
									
										
										
										
											2001-03-23 11:05:41 +00:00
										 |  |  | 	/** base address of channel samples */ | 
					
						
							|  |  |  | 	void *addr; | 
					
						
							|  |  |  | 	/** offset to first sample in bits */ | 
					
						
							|  |  |  | 	unsigned int first; | 
					
						
							|  |  |  | 	/** samples distance in bits */ | 
					
						
							|  |  |  | 	unsigned int step; | 
					
						
							| 
									
										
										
										
											2000-11-20 20:10:46 +00:00
										 |  |  | } snd_pcm_channel_area_t; | 
					
						
							| 
									
										
										
										
											2000-07-04 19:29:16 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-13 11:38:32 +00:00
										 |  |  | /** PCM synchronization ID */ | 
					
						
							| 
									
										
										
										
											2001-09-11 08:42:15 +00:00
										 |  |  | typedef union _snd_pcm_sync_id { | 
					
						
							|  |  |  | 	/** 8-bit ID */ | 
					
						
							|  |  |  | 	unsigned char id[16]; | 
					
						
							|  |  |  | 	/** 16-bit ID */ | 
					
						
							|  |  |  | 	unsigned short id16[8]; | 
					
						
							|  |  |  | 	/** 32-bit ID */ | 
					
						
							|  |  |  | 	unsigned int id32[4]; | 
					
						
							|  |  |  | } snd_pcm_sync_id_t; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-08-20 15:33:45 +02:00
										 |  |  | /** synchronization ID size (see snd_pcm_hw_params_get_sync) */ | 
					
						
							|  |  |  | #define SND_PCM_HW_PARAMS_SYNC_SIZE	16
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-05-02 16:56:49 +02:00
										 |  |  | /** Infinite wait for snd_pcm_wait() */ | 
					
						
							|  |  |  | #define SND_PCM_WAIT_INFINITE		(-1)
 | 
					
						
							|  |  |  | /** Wait for next i/o in snd_pcm_wait() */ | 
					
						
							|  |  |  | #define SND_PCM_WAIT_IO			(-10001)
 | 
					
						
							|  |  |  | /** Wait for drain in snd_pcm_wait() */ | 
					
						
							|  |  |  | #define SND_PCM_WAIT_DRAIN		(-10002)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-03-24 16:14:44 +00:00
										 |  |  | /** #SND_PCM_TYPE_METER scope handle */ | 
					
						
							| 
									
										
										
										
											2001-03-07 12:36:05 +00:00
										 |  |  | typedef struct _snd_pcm_scope snd_pcm_scope_t; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-02-06 23:48:10 +00:00
										 |  |  | int snd_pcm_open(snd_pcm_t **pcm, const char *name,  | 
					
						
							| 
									
										
										
										
											2001-02-04 17:03:17 +00:00
										 |  |  | 		 snd_pcm_stream_t stream, int mode); | 
					
						
							| 
									
										
										
										
											2001-11-24 17:47:01 +00:00
										 |  |  | int snd_pcm_open_lconf(snd_pcm_t **pcm, const char *name,  | 
					
						
							|  |  |  | 		       snd_pcm_stream_t stream, int mode, | 
					
						
							|  |  |  | 		       snd_config_t *lconf); | 
					
						
							| 
									
										
										
										
											2011-07-26 13:10:24 +02:00
										 |  |  | 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); | 
					
						
							| 
									
										
										
										
											2000-08-24 17:07:44 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-10-07 16:59:48 +00:00
										 |  |  | int snd_pcm_close(snd_pcm_t *pcm); | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | const char *snd_pcm_name(snd_pcm_t *pcm); | 
					
						
							|  |  |  | snd_pcm_type_t snd_pcm_type(snd_pcm_t *pcm); | 
					
						
							|  |  |  | snd_pcm_stream_t snd_pcm_stream(snd_pcm_t *pcm); | 
					
						
							| 
									
										
										
										
											2001-02-18 18:32:30 +00:00
										 |  |  | int snd_pcm_poll_descriptors_count(snd_pcm_t *pcm); | 
					
						
							| 
									
										
										
										
											2001-02-12 23:51:49 +00:00
										 |  |  | int snd_pcm_poll_descriptors(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int space); | 
					
						
							| 
									
										
										
										
											2001-11-30 17:36:45 +00:00
										 |  |  | int snd_pcm_poll_descriptors_revents(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int nfds, unsigned short *revents); | 
					
						
							| 
									
										
										
										
											2000-10-07 16:59:48 +00:00
										 |  |  | int snd_pcm_nonblock(snd_pcm_t *pcm, int nonblock); | 
					
						
							| 
									
										
										
										
											2013-04-25 09:52:33 +02:00
										 |  |  | static __inline__ int snd_pcm_abort(snd_pcm_t *pcm) { return snd_pcm_nonblock(pcm, 2); } | 
					
						
							| 
									
										
										
										
											2001-06-20 20:52:12 +00:00
										 |  |  | int snd_async_add_pcm_handler(snd_async_handler_t **handler, snd_pcm_t *pcm,  | 
					
						
							|  |  |  | 			      snd_async_callback_t callback, void *private_data); | 
					
						
							|  |  |  | snd_pcm_t *snd_async_handler_get_pcm(snd_async_handler_t *handler); | 
					
						
							| 
									
										
										
										
											2000-10-07 16:59:48 +00:00
										 |  |  | int snd_pcm_info(snd_pcm_t *pcm, snd_pcm_info_t *info); | 
					
						
							| 
									
										
										
										
											2002-10-12 10:38:43 +00:00
										 |  |  | int snd_pcm_hw_params_current(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); | 
					
						
							| 
									
										
										
										
											2000-12-29 15:00:53 +00:00
										 |  |  | int snd_pcm_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); | 
					
						
							| 
									
										
										
										
											2001-01-19 13:10:50 +00:00
										 |  |  | int snd_pcm_hw_free(snd_pcm_t *pcm); | 
					
						
							| 
									
										
										
										
											2002-10-12 10:38:43 +00:00
										 |  |  | int snd_pcm_sw_params_current(snd_pcm_t *pcm, snd_pcm_sw_params_t *params); | 
					
						
							| 
									
										
										
										
											2000-11-20 20:10:46 +00:00
										 |  |  | int snd_pcm_sw_params(snd_pcm_t *pcm, snd_pcm_sw_params_t *params); | 
					
						
							| 
									
										
										
										
											2000-10-07 16:59:48 +00:00
										 |  |  | int snd_pcm_prepare(snd_pcm_t *pcm); | 
					
						
							| 
									
										
										
										
											2000-11-24 17:08:03 +00:00
										 |  |  | int snd_pcm_reset(snd_pcm_t *pcm); | 
					
						
							| 
									
										
										
										
											2001-01-31 17:26:56 +00:00
										 |  |  | int snd_pcm_status(snd_pcm_t *pcm, snd_pcm_status_t *status); | 
					
						
							| 
									
										
										
										
											2000-10-07 16:59:48 +00:00
										 |  |  | int snd_pcm_start(snd_pcm_t *pcm); | 
					
						
							|  |  |  | int snd_pcm_drop(snd_pcm_t *pcm); | 
					
						
							|  |  |  | int snd_pcm_drain(snd_pcm_t *pcm); | 
					
						
							|  |  |  | int snd_pcm_pause(snd_pcm_t *pcm, int enable); | 
					
						
							| 
									
										
										
										
											2001-02-04 17:03:17 +00:00
										 |  |  | snd_pcm_state_t snd_pcm_state(snd_pcm_t *pcm); | 
					
						
							| 
									
										
										
										
											2002-10-12 11:49:53 +00:00
										 |  |  | int snd_pcm_hwsync(snd_pcm_t *pcm); | 
					
						
							| 
									
										
										
										
											2001-01-15 11:06:53 +00:00
										 |  |  | int snd_pcm_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp); | 
					
						
							| 
									
										
										
										
											2001-09-26 13:57:04 +00:00
										 |  |  | int snd_pcm_resume(snd_pcm_t *pcm); | 
					
						
							| 
									
										
										
										
											2008-01-09 13:50:45 +01:00
										 |  |  | int snd_pcm_htimestamp(snd_pcm_t *pcm, snd_pcm_uframes_t *avail, snd_htimestamp_t *tstamp); | 
					
						
							| 
									
										
										
										
											2008-10-23 09:57:11 +02:00
										 |  |  | snd_pcm_sframes_t snd_pcm_avail(snd_pcm_t *pcm); | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | snd_pcm_sframes_t snd_pcm_avail_update(snd_pcm_t *pcm); | 
					
						
							| 
									
										
										
										
											2008-10-23 09:57:11 +02:00
										 |  |  | int snd_pcm_avail_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *availp, snd_pcm_sframes_t *delayp); | 
					
						
							| 
									
										
										
										
											2008-04-21 12:46:50 +02:00
										 |  |  | snd_pcm_sframes_t snd_pcm_rewindable(snd_pcm_t *pcm); | 
					
						
							| 
									
										
										
										
											2001-01-15 11:06:53 +00:00
										 |  |  | snd_pcm_sframes_t snd_pcm_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames); | 
					
						
							| 
									
										
										
										
											2008-04-21 12:46:50 +02:00
										 |  |  | snd_pcm_sframes_t snd_pcm_forwardable(snd_pcm_t *pcm); | 
					
						
							| 
									
										
										
										
											2003-02-22 17:19:02 +00:00
										 |  |  | snd_pcm_sframes_t snd_pcm_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames); | 
					
						
							| 
									
										
										
										
											2001-01-15 11:06:53 +00:00
										 |  |  | snd_pcm_sframes_t snd_pcm_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size); | 
					
						
							|  |  |  | snd_pcm_sframes_t snd_pcm_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size); | 
					
						
							|  |  |  | snd_pcm_sframes_t snd_pcm_writen(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size); | 
					
						
							|  |  |  | snd_pcm_sframes_t snd_pcm_readn(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size); | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | int snd_pcm_wait(snd_pcm_t *pcm, int timeout); | 
					
						
							| 
									
										
										
										
											2000-11-20 20:10:46 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-10-07 16:59:48 +00:00
										 |  |  | int snd_pcm_link(snd_pcm_t *pcm1, snd_pcm_t *pcm2); | 
					
						
							|  |  |  | int snd_pcm_unlink(snd_pcm_t *pcm); | 
					
						
							| 
									
										
										
										
											2000-06-21 14:59:20 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-09-11 11:33:31 +02:00
										 |  |  | /** channel mapping API version number */ | 
					
						
							| 
									
										
										
										
											2012-11-26 18:10:26 +01:00
										 |  |  | #define SND_CHMAP_API_VERSION	((1 << 16) | (0 << 8) | 1)
 | 
					
						
							| 
									
										
										
										
											2012-09-11 11:33:31 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-08-21 12:16:39 +02:00
										 |  |  | /** channel map list type */ | 
					
						
							|  |  |  | enum snd_pcm_chmap_type { | 
					
						
							| 
									
										
										
										
											2015-08-24 20:37:29 +02:00
										 |  |  | 	SND_CHMAP_TYPE_NONE = 0,/**< unspecified channel position */ | 
					
						
							|  |  |  | 	SND_CHMAP_TYPE_FIXED,	/**< fixed channel position */ | 
					
						
							|  |  |  | 	SND_CHMAP_TYPE_VAR,	/**< freely swappable channel position */ | 
					
						
							|  |  |  | 	SND_CHMAP_TYPE_PAIRED,	/**< pair-wise swappable channel position */ | 
					
						
							|  |  |  | 	SND_CHMAP_TYPE_LAST = SND_CHMAP_TYPE_PAIRED, /**< last entry */ | 
					
						
							| 
									
										
										
										
											2012-07-25 15:05:15 +02:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-08-21 12:16:39 +02:00
										 |  |  | /** channel positions */ | 
					
						
							|  |  |  | enum snd_pcm_chmap_position { | 
					
						
							| 
									
										
										
										
											2013-04-08 16:42:24 +02:00
										 |  |  | 	SND_CHMAP_UNKNOWN = 0,	/**< unspecified */ | 
					
						
							|  |  |  | 	SND_CHMAP_NA,		/**< N/A, silent */ | 
					
						
							|  |  |  | 	SND_CHMAP_MONO,		/**< mono stream */ | 
					
						
							|  |  |  | 	SND_CHMAP_FL,		/**< front left */ | 
					
						
							|  |  |  | 	SND_CHMAP_FR,		/**< front right */ | 
					
						
							|  |  |  | 	SND_CHMAP_RL,		/**< rear left */ | 
					
						
							|  |  |  | 	SND_CHMAP_RR,		/**< rear right */ | 
					
						
							|  |  |  | 	SND_CHMAP_FC,		/**< front center */ | 
					
						
							|  |  |  | 	SND_CHMAP_LFE,		/**< LFE */ | 
					
						
							|  |  |  | 	SND_CHMAP_SL,		/**< side left */ | 
					
						
							|  |  |  | 	SND_CHMAP_SR,		/**< side right */ | 
					
						
							|  |  |  | 	SND_CHMAP_RC,		/**< rear center */ | 
					
						
							|  |  |  | 	SND_CHMAP_FLC,		/**< front left center */ | 
					
						
							|  |  |  | 	SND_CHMAP_FRC,		/**< front right center */ | 
					
						
							|  |  |  | 	SND_CHMAP_RLC,		/**< rear left center */ | 
					
						
							|  |  |  | 	SND_CHMAP_RRC,		/**< rear right center */ | 
					
						
							|  |  |  | 	SND_CHMAP_FLW,		/**< front left wide */ | 
					
						
							|  |  |  | 	SND_CHMAP_FRW,		/**< front right wide */ | 
					
						
							|  |  |  | 	SND_CHMAP_FLH,		/**< front left high */ | 
					
						
							|  |  |  | 	SND_CHMAP_FCH,		/**< front center high */ | 
					
						
							|  |  |  | 	SND_CHMAP_FRH,		/**< front right high */ | 
					
						
							|  |  |  | 	SND_CHMAP_TC,		/**< top center */ | 
					
						
							|  |  |  | 	SND_CHMAP_TFL,		/**< top front left */ | 
					
						
							|  |  |  | 	SND_CHMAP_TFR,		/**< top front right */ | 
					
						
							|  |  |  | 	SND_CHMAP_TFC,		/**< top front center */ | 
					
						
							|  |  |  | 	SND_CHMAP_TRL,		/**< top rear left */ | 
					
						
							|  |  |  | 	SND_CHMAP_TRR,		/**< top rear right */ | 
					
						
							|  |  |  | 	SND_CHMAP_TRC,		/**< top rear center */ | 
					
						
							|  |  |  | 	SND_CHMAP_TFLC,		/**< top front left center */ | 
					
						
							|  |  |  | 	SND_CHMAP_TFRC,		/**< top front right center */ | 
					
						
							|  |  |  | 	SND_CHMAP_TSL,		/**< top side left */ | 
					
						
							|  |  |  | 	SND_CHMAP_TSR,		/**< top side right */ | 
					
						
							|  |  |  | 	SND_CHMAP_LLFE,		/**< left LFE */ | 
					
						
							|  |  |  | 	SND_CHMAP_RLFE,		/**< right LFE */ | 
					
						
							|  |  |  | 	SND_CHMAP_BC,		/**< bottom center */ | 
					
						
							|  |  |  | 	SND_CHMAP_BLC,		/**< bottom left center */ | 
					
						
							|  |  |  | 	SND_CHMAP_BRC,		/**< bottom right center */ | 
					
						
							| 
									
										
										
										
											2012-11-26 18:10:26 +01:00
										 |  |  | 	SND_CHMAP_LAST = SND_CHMAP_BRC, | 
					
						
							| 
									
										
										
										
											2012-08-21 12:16:39 +02:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-09-13 08:38:59 +02:00
										 |  |  | /** bitmask for channel position */ | 
					
						
							|  |  |  | #define SND_CHMAP_POSITION_MASK		0xffff
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** bit flag indicating the channel is phase inverted */ | 
					
						
							|  |  |  | #define SND_CHMAP_PHASE_INVERSE		(0x01 << 16)
 | 
					
						
							|  |  |  | /** bit flag indicating the non-standard channel value */ | 
					
						
							|  |  |  | #define SND_CHMAP_DRIVER_SPEC		(0x02 << 16)
 | 
					
						
							| 
									
										
										
										
											2012-08-31 13:53:22 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-09-04 17:26:43 +02:00
										 |  |  | /** the channel map header */ | 
					
						
							|  |  |  | typedef struct snd_pcm_chmap { | 
					
						
							| 
									
										
										
										
											2013-04-08 16:42:24 +02:00
										 |  |  | 	unsigned int channels;	/**< number of channels */ | 
					
						
							|  |  |  | 	unsigned int pos[0];	/**< channel position array */ | 
					
						
							| 
									
										
										
										
											2012-09-04 17:26:43 +02:00
										 |  |  | } snd_pcm_chmap_t; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** the header of array items returned from snd_pcm_query_chmaps() */ | 
					
						
							|  |  |  | typedef struct snd_pcm_chmap_query { | 
					
						
							| 
									
										
										
										
											2013-04-08 16:42:24 +02:00
										 |  |  | 	enum snd_pcm_chmap_type type;	/**< channel map type */ | 
					
						
							|  |  |  | 	snd_pcm_chmap_t map;		/**< available channel map */ | 
					
						
							| 
									
										
										
										
											2012-09-04 17:26:43 +02:00
										 |  |  | } snd_pcm_chmap_query_t; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | snd_pcm_chmap_query_t **snd_pcm_query_chmaps(snd_pcm_t *pcm); | 
					
						
							| 
									
										
										
										
											2012-09-07 14:15:04 +02:00
										 |  |  | snd_pcm_chmap_query_t **snd_pcm_query_chmaps_from_hw(int card, int dev, | 
					
						
							|  |  |  | 						     int subdev, | 
					
						
							|  |  |  | 						     snd_pcm_stream_t stream); | 
					
						
							| 
									
										
										
										
											2012-09-04 17:26:43 +02:00
										 |  |  | void snd_pcm_free_chmaps(snd_pcm_chmap_query_t **maps); | 
					
						
							|  |  |  | snd_pcm_chmap_t *snd_pcm_get_chmap(snd_pcm_t *pcm); | 
					
						
							|  |  |  | int snd_pcm_set_chmap(snd_pcm_t *pcm, const snd_pcm_chmap_t *map); | 
					
						
							| 
									
										
										
										
											2012-07-25 15:05:15 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-09-10 18:07:36 +02:00
										 |  |  | const char *snd_pcm_chmap_type_name(enum snd_pcm_chmap_type val); | 
					
						
							|  |  |  | const char *snd_pcm_chmap_name(enum snd_pcm_chmap_position val); | 
					
						
							| 
									
										
										
										
											2012-09-11 12:48:46 +02:00
										 |  |  | const char *snd_pcm_chmap_long_name(enum snd_pcm_chmap_position val); | 
					
						
							| 
									
										
										
										
											2012-09-10 18:07:36 +02:00
										 |  |  | int snd_pcm_chmap_print(const snd_pcm_chmap_t *map, size_t maxlen, char *buf); | 
					
						
							|  |  |  | unsigned int snd_pcm_chmap_from_string(const char *str); | 
					
						
							|  |  |  | snd_pcm_chmap_t *snd_pcm_chmap_parse_string(const char *str); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-10-23 09:57:11 +02:00
										 |  |  | //int snd_pcm_mixer_element(snd_pcm_t *pcm, snd_mixer_t *mixer, snd_mixer_elem_t **elem);
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-01-06 19:59:56 +00:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * application helpers - these functions are implemented on top | 
					
						
							|  |  |  |  * of the basic API | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | int snd_pcm_recover(snd_pcm_t *pcm, int err, int silent); | 
					
						
							|  |  |  | 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); | 
					
						
							|  |  |  | int snd_pcm_get_params(snd_pcm_t *pcm, | 
					
						
							|  |  |  |                        snd_pcm_uframes_t *buffer_size, | 
					
						
							|  |  |  |                        snd_pcm_uframes_t *period_size); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | /** \} */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /**
 | 
					
						
							|  |  |  |  * \defgroup PCM_Info Stream Information | 
					
						
							|  |  |  |  * \ingroup PCM | 
					
						
							| 
									
										
										
										
											2001-11-19 08:14:21 +00:00
										 |  |  |  * See the \ref pcm page for more details. | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  |  * \{ | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | size_t snd_pcm_info_sizeof(void); | 
					
						
							|  |  |  | /** \hideinitializer
 | 
					
						
							|  |  |  |  * \brief allocate an invalid #snd_pcm_info_t using standard alloca | 
					
						
							|  |  |  |  * \param ptr returned pointer | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2007-10-25 15:36:03 +02:00
										 |  |  | #define snd_pcm_info_alloca(ptr) __snd_alloca(ptr, snd_pcm_info)
 | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | int snd_pcm_info_malloc(snd_pcm_info_t **ptr); | 
					
						
							|  |  |  | void snd_pcm_info_free(snd_pcm_info_t *obj); | 
					
						
							|  |  |  | void snd_pcm_info_copy(snd_pcm_info_t *dst, const snd_pcm_info_t *src); | 
					
						
							|  |  |  | unsigned int snd_pcm_info_get_device(const snd_pcm_info_t *obj); | 
					
						
							|  |  |  | unsigned int snd_pcm_info_get_subdevice(const snd_pcm_info_t *obj); | 
					
						
							|  |  |  | snd_pcm_stream_t snd_pcm_info_get_stream(const snd_pcm_info_t *obj); | 
					
						
							|  |  |  | int snd_pcm_info_get_card(const snd_pcm_info_t *obj); | 
					
						
							|  |  |  | const char *snd_pcm_info_get_id(const snd_pcm_info_t *obj); | 
					
						
							|  |  |  | const char *snd_pcm_info_get_name(const snd_pcm_info_t *obj); | 
					
						
							|  |  |  | const char *snd_pcm_info_get_subdevice_name(const snd_pcm_info_t *obj); | 
					
						
							|  |  |  | snd_pcm_class_t snd_pcm_info_get_class(const snd_pcm_info_t *obj); | 
					
						
							|  |  |  | snd_pcm_subclass_t snd_pcm_info_get_subclass(const snd_pcm_info_t *obj); | 
					
						
							|  |  |  | unsigned int snd_pcm_info_get_subdevices_count(const snd_pcm_info_t *obj); | 
					
						
							|  |  |  | unsigned int snd_pcm_info_get_subdevices_avail(const snd_pcm_info_t *obj); | 
					
						
							|  |  |  | snd_pcm_sync_id_t snd_pcm_info_get_sync(const snd_pcm_info_t *obj); | 
					
						
							|  |  |  | void snd_pcm_info_set_device(snd_pcm_info_t *obj, unsigned int val); | 
					
						
							|  |  |  | void snd_pcm_info_set_subdevice(snd_pcm_info_t *obj, unsigned int val); | 
					
						
							|  |  |  | void snd_pcm_info_set_stream(snd_pcm_info_t *obj, snd_pcm_stream_t val); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** \} */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /**
 | 
					
						
							|  |  |  |  * \defgroup PCM_HW_Params Hardware Parameters | 
					
						
							|  |  |  |  * \ingroup PCM | 
					
						
							| 
									
										
										
										
											2001-11-19 08:14:21 +00:00
										 |  |  |  * See the \ref pcm page for more details. | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  |  * \{ | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2001-01-31 17:26:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-12-21 20:44:10 +00:00
										 |  |  | int snd_pcm_hw_params_any(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); | 
					
						
							| 
									
										
										
										
											2001-02-04 17:03:17 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-07-30 11:56:46 +00:00
										 |  |  | int snd_pcm_hw_params_can_mmap_sample_resolution(const snd_pcm_hw_params_t *params); | 
					
						
							| 
									
										
										
										
											2001-07-26 13:52:43 +00:00
										 |  |  | int snd_pcm_hw_params_is_double(const snd_pcm_hw_params_t *params); | 
					
						
							|  |  |  | int snd_pcm_hw_params_is_batch(const snd_pcm_hw_params_t *params); | 
					
						
							|  |  |  | int snd_pcm_hw_params_is_block_transfer(const snd_pcm_hw_params_t *params); | 
					
						
							| 
									
										
										
										
											2008-04-11 14:11:04 +02:00
										 |  |  | int snd_pcm_hw_params_is_monotonic(const snd_pcm_hw_params_t *params); | 
					
						
							| 
									
										
										
										
											2001-07-30 11:56:46 +00:00
										 |  |  | int snd_pcm_hw_params_can_overrange(const snd_pcm_hw_params_t *params); | 
					
						
							|  |  |  | int snd_pcm_hw_params_can_pause(const snd_pcm_hw_params_t *params); | 
					
						
							| 
									
										
										
										
											2001-10-14 09:08:47 +00:00
										 |  |  | int snd_pcm_hw_params_can_resume(const snd_pcm_hw_params_t *params); | 
					
						
							| 
									
										
										
										
											2001-07-26 13:52:43 +00:00
										 |  |  | int snd_pcm_hw_params_is_half_duplex(const snd_pcm_hw_params_t *params); | 
					
						
							|  |  |  | int snd_pcm_hw_params_is_joint_duplex(const snd_pcm_hw_params_t *params); | 
					
						
							| 
									
										
										
										
											2001-07-30 11:56:46 +00:00
										 |  |  | int snd_pcm_hw_params_can_sync_start(const snd_pcm_hw_params_t *params); | 
					
						
							| 
									
										
										
										
											2010-11-15 10:43:13 +01:00
										 |  |  | int snd_pcm_hw_params_can_disable_period_wakeup(const snd_pcm_hw_params_t *params); | 
					
						
							| 
									
										
										
										
											2023-04-25 14:36:19 +02:00
										 |  |  | int snd_pcm_hw_params_is_perfect_drain(const snd_pcm_hw_params_t *params); | 
					
						
							| 
									
										
										
										
											2015-07-01 15:40:54 -05:00
										 |  |  | int snd_pcm_hw_params_supports_audio_wallclock_ts(const snd_pcm_hw_params_t *params); /* deprecated, use audio_ts_type */ | 
					
						
							|  |  |  | int snd_pcm_hw_params_supports_audio_ts_type(const snd_pcm_hw_params_t *params, int type); | 
					
						
							| 
									
										
										
										
											2001-02-04 17:03:17 +00:00
										 |  |  | int snd_pcm_hw_params_get_rate_numden(const snd_pcm_hw_params_t *params, | 
					
						
							|  |  |  | 				      unsigned int *rate_num, | 
					
						
							|  |  |  | 				      unsigned int *rate_den); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_sbits(const snd_pcm_hw_params_t *params); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_fifo_size(const snd_pcm_hw_params_t *params); | 
					
						
							| 
									
										
										
										
											2024-08-20 15:33:45 +02:00
										 |  |  | const unsigned char * snd_pcm_hw_params_get_sync(const snd_pcm_hw_params_t *params); | 
					
						
							| 
									
										
										
										
											2000-06-21 14:59:20 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-03-24 16:14:44 +00:00
										 |  |  | #if 0
 | 
					
						
							| 
									
										
										
										
											2000-12-29 15:00:53 +00:00
										 |  |  | typedef struct _snd_pcm_hw_strategy snd_pcm_hw_strategy_t; | 
					
						
							| 
									
										
										
										
											2000-11-26 12:16:18 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | /* choices need to be sorted on ascending badness */ | 
					
						
							| 
									
										
										
										
											2000-12-29 15:00:53 +00:00
										 |  |  | typedef struct _snd_pcm_hw_strategy_simple_choices_list { | 
					
						
							| 
									
										
										
										
											2000-12-07 15:58:03 +00:00
										 |  |  | 	unsigned int value; | 
					
						
							| 
									
										
										
										
											2000-11-26 12:16:18 +00:00
										 |  |  | 	unsigned int badness; | 
					
						
							| 
									
										
										
										
											2000-12-29 15:00:53 +00:00
										 |  |  | } snd_pcm_hw_strategy_simple_choices_list_t; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | int snd_pcm_hw_params_strategy(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, | 
					
						
							|  |  |  | 			       const snd_pcm_hw_strategy_t *strategy, | 
					
						
							|  |  |  | 			       unsigned int badness_min, | 
					
						
							|  |  |  | 			       unsigned int badness_max); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-02-02 08:49:47 +00:00
										 |  |  | void snd_pcm_hw_strategy_free(snd_pcm_hw_strategy_t *strategy); | 
					
						
							| 
									
										
										
										
											2000-12-29 15:00:53 +00:00
										 |  |  | int snd_pcm_hw_strategy_simple(snd_pcm_hw_strategy_t **strategyp, | 
					
						
							|  |  |  | 			       unsigned int badness_min, | 
					
						
							|  |  |  | 			       unsigned int badness_max); | 
					
						
							| 
									
										
										
										
											2001-03-24 16:14:44 +00:00
										 |  |  | int snd_pcm_hw_params_try_explain_failure(snd_pcm_t *pcm, | 
					
						
							|  |  |  | 					  snd_pcm_hw_params_t *fail, | 
					
						
							|  |  |  | 					  snd_pcm_hw_params_t *success, | 
					
						
							|  |  |  | 					  unsigned int depth, | 
					
						
							|  |  |  | 					  snd_output_t *out); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2001-01-31 17:26:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-03-30 09:43:29 +00:00
										 |  |  | size_t snd_pcm_hw_params_sizeof(void); | 
					
						
							|  |  |  | /** \hideinitializer
 | 
					
						
							|  |  |  |  * \brief allocate an invalid #snd_pcm_hw_params_t using standard alloca | 
					
						
							|  |  |  |  * \param ptr returned pointer | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2007-10-25 15:36:03 +02:00
										 |  |  | #define snd_pcm_hw_params_alloca(ptr) __snd_alloca(ptr, snd_pcm_hw_params)
 | 
					
						
							| 
									
										
										
										
											2001-03-30 09:43:29 +00:00
										 |  |  | int snd_pcm_hw_params_malloc(snd_pcm_hw_params_t **ptr); | 
					
						
							|  |  |  | void snd_pcm_hw_params_free(snd_pcm_hw_params_t *obj); | 
					
						
							|  |  |  | void snd_pcm_hw_params_copy(snd_pcm_hw_params_t *dst, const snd_pcm_hw_params_t *src); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-14 14:01:10 +00:00
										 |  |  | #if !defined(ALSA_LIBRARY_BUILD) && !defined(ALSA_PCM_OLD_HW_PARAMS_API)
 | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-09-21 10:35:57 +00:00
										 |  |  | int snd_pcm_hw_params_get_access(const snd_pcm_hw_params_t *params, snd_pcm_access_t *_access); | 
					
						
							|  |  |  | int snd_pcm_hw_params_test_access(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t _access); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_access(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t _access); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_access_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t *_access); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_access_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t *_access); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | int snd_pcm_hw_params_set_access_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_mask_t *mask); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_access_mask(snd_pcm_hw_params_t *params, snd_pcm_access_mask_t *mask); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_hw_params_get_format(const snd_pcm_hw_params_t *params, snd_pcm_format_t *val); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | int snd_pcm_hw_params_test_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val); | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_hw_params_set_format_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t *format); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_format_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t *format); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | int snd_pcm_hw_params_set_format_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_mask_t *mask); | 
					
						
							|  |  |  | void snd_pcm_hw_params_get_format_mask(snd_pcm_hw_params_t *params, snd_pcm_format_mask_t *mask); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_hw_params_get_subformat(const snd_pcm_hw_params_t *params, snd_pcm_subformat_t *subformat); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | int snd_pcm_hw_params_test_subformat(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t subformat); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_subformat(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t subformat); | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_hw_params_set_subformat_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t *subformat); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_subformat_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_t *subformat); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | int snd_pcm_hw_params_set_subformat_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_subformat_mask_t *mask); | 
					
						
							|  |  |  | void snd_pcm_hw_params_get_subformat_mask(snd_pcm_hw_params_t *params, snd_pcm_subformat_mask_t *mask); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_hw_params_get_channels(const snd_pcm_hw_params_t *params, unsigned int *val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_channels_min(const snd_pcm_hw_params_t *params, unsigned int *val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_channels_max(const snd_pcm_hw_params_t *params, unsigned int *val); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | int snd_pcm_hw_params_test_channels(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_channels(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_channels_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_channels_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_channels_minmax(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *min, unsigned int *max); | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_hw_params_set_channels_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_channels_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_channels_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_hw_params_get_rate(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_rate_min(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_rate_max(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | int snd_pcm_hw_params_test_rate(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_rate(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_rate_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_rate_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | 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); | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_hw_params_set_rate_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_rate_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_rate_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							| 
									
										
										
										
											2005-04-12 12:09:55 +00:00
										 |  |  | int snd_pcm_hw_params_set_rate_resample(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_rate_resample(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val); | 
					
						
							| 
									
										
										
										
											2005-05-19 16:59:04 +00:00
										 |  |  | int snd_pcm_hw_params_set_export_buffer(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_export_buffer(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val); | 
					
						
							| 
									
										
										
										
											2010-11-15 10:43:13 +01:00
										 |  |  | int snd_pcm_hw_params_set_period_wakeup(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_period_wakeup(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val); | 
					
						
							| 
									
										
										
										
											2023-05-02 10:34:41 +02:00
										 |  |  | int snd_pcm_hw_params_set_drain_silence(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_drain_silence(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_hw_params_get_period_time(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_period_time_min(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_period_time_max(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | int snd_pcm_hw_params_test_period_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_period_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_period_time_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_period_time_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | 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); | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_hw_params_set_period_time_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_period_time_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_period_time_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_hw_params_get_period_size(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *frames, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_period_size_min(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *frames, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_period_size_max(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *frames, int *dir); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | 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); | 
					
						
							|  |  |  | 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); | 
					
						
							|  |  |  | 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); | 
					
						
							|  |  |  | 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); | 
					
						
							|  |  |  | 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); | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | 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); | 
					
						
							|  |  |  | 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); | 
					
						
							|  |  |  | 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); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | int snd_pcm_hw_params_set_period_size_integer(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_hw_params_get_periods(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_periods_min(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_periods_max(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | int snd_pcm_hw_params_test_periods(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_periods(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_periods_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_periods_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | 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); | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_hw_params_set_periods_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_periods_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_periods_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | int snd_pcm_hw_params_set_periods_integer(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_hw_params_get_buffer_time(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_buffer_time_min(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_buffer_time_max(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | int snd_pcm_hw_params_test_buffer_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_buffer_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_buffer_time_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_buffer_time_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | 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); | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_hw_params_set_buffer_time_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_buffer_time_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_buffer_time_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_hw_params_get_buffer_size(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_buffer_size_min(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_buffer_size_max(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | int snd_pcm_hw_params_test_buffer_size(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_buffer_size(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_buffer_size_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_buffer_size_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val); | 
					
						
							|  |  |  | 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); | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_hw_params_set_buffer_size_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_buffer_size_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_buffer_size_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val); | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-14 14:01:10 +00:00
										 |  |  | #endif /* !ALSA_LIBRARY_BUILD && !ALSA_PCM_OLD_HW_PARAMS_API */
 | 
					
						
							| 
									
										
										
										
											2002-09-17 12:33:05 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_min_align(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val); | 
					
						
							| 
									
										
										
										
											2001-03-30 09:43:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | /** \} */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /**
 | 
					
						
							|  |  |  |  * \defgroup PCM_SW_Params Software Parameters | 
					
						
							|  |  |  |  * \ingroup PCM | 
					
						
							| 
									
										
										
										
											2001-11-19 08:14:21 +00:00
										 |  |  |  * See the \ref pcm page for more details. | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  |  * \{ | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-03-30 09:43:29 +00:00
										 |  |  | size_t snd_pcm_sw_params_sizeof(void); | 
					
						
							|  |  |  | /** \hideinitializer
 | 
					
						
							|  |  |  |  * \brief allocate an invalid #snd_pcm_sw_params_t using standard alloca | 
					
						
							|  |  |  |  * \param ptr returned pointer | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2007-10-25 15:36:03 +02:00
										 |  |  | #define snd_pcm_sw_params_alloca(ptr) __snd_alloca(ptr, snd_pcm_sw_params)
 | 
					
						
							| 
									
										
										
										
											2001-03-30 09:43:29 +00:00
										 |  |  | int snd_pcm_sw_params_malloc(snd_pcm_sw_params_t **ptr); | 
					
						
							|  |  |  | void snd_pcm_sw_params_free(snd_pcm_sw_params_t *obj); | 
					
						
							|  |  |  | void snd_pcm_sw_params_copy(snd_pcm_sw_params_t *dst, const snd_pcm_sw_params_t *src); | 
					
						
							| 
									
										
										
										
											2003-02-05 21:26:14 +00:00
										 |  |  | int snd_pcm_sw_params_get_boundary(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val); | 
					
						
							| 
									
										
										
										
											2002-10-19 19:09:46 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-14 14:01:10 +00:00
										 |  |  | #if !defined(ALSA_LIBRARY_BUILD) && !defined(ALSA_PCM_OLD_SW_PARAMS_API)
 | 
					
						
							| 
									
										
										
										
											2002-10-19 19:09:46 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | int snd_pcm_sw_params_set_tstamp_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_tstamp_t val); | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_sw_params_get_tstamp_mode(const snd_pcm_sw_params_t *params, snd_pcm_tstamp_t *val); | 
					
						
							| 
									
										
										
										
											2014-07-10 14:26:37 +02:00
										 |  |  | int snd_pcm_sw_params_set_tstamp_type(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_tstamp_type_t val); | 
					
						
							|  |  |  | int snd_pcm_sw_params_get_tstamp_type(const snd_pcm_sw_params_t *params, snd_pcm_tstamp_type_t *val); | 
					
						
							| 
									
										
										
										
											2002-10-19 19:09:46 +00:00
										 |  |  | int snd_pcm_sw_params_set_avail_min(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val); | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_sw_params_get_avail_min(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val); | 
					
						
							| 
									
										
										
										
											2008-05-09 16:02:02 +02:00
										 |  |  | int snd_pcm_sw_params_set_period_event(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, int val); | 
					
						
							|  |  |  | int snd_pcm_sw_params_get_period_event(const snd_pcm_sw_params_t *params, int *val); | 
					
						
							| 
									
										
										
										
											2002-10-19 19:09:46 +00:00
										 |  |  | int snd_pcm_sw_params_set_start_threshold(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val); | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_sw_params_get_start_threshold(const snd_pcm_sw_params_t *paramsm, snd_pcm_uframes_t *val); | 
					
						
							| 
									
										
										
										
											2002-10-19 19:09:46 +00:00
										 |  |  | int snd_pcm_sw_params_set_stop_threshold(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val); | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_sw_params_get_stop_threshold(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val); | 
					
						
							| 
									
										
										
										
											2002-10-19 19:09:46 +00:00
										 |  |  | int snd_pcm_sw_params_set_silence_threshold(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val); | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_sw_params_get_silence_threshold(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val); | 
					
						
							| 
									
										
										
										
											2002-10-19 19:09:46 +00:00
										 |  |  | int snd_pcm_sw_params_set_silence_size(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val); | 
					
						
							| 
									
										
										
										
											2003-11-05 10:38:37 +00:00
										 |  |  | int snd_pcm_sw_params_get_silence_size(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val); | 
					
						
							| 
									
										
										
										
											2002-10-19 19:09:46 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-14 14:01:10 +00:00
										 |  |  | #endif /* !ALSA_LIBRARY_BUILD && !ALSA_PCM_OLD_SW_PARAMS_API */
 | 
					
						
							| 
									
										
										
										
											2002-10-19 19:09:46 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | /** \} */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-04-14 14:01:10 +00:00
										 |  |  | /* include old API */ | 
					
						
							|  |  |  | #ifndef ALSA_LIBRARY_BUILD
 | 
					
						
							|  |  |  | #if defined(ALSA_PCM_OLD_HW_PARAMS_API) || defined(ALSA_PCM_OLD_SW_PARAMS_API)
 | 
					
						
							|  |  |  | #include "pcm_old.h"
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | /**
 | 
					
						
							|  |  |  |  * \defgroup PCM_Access Access Mask Functions | 
					
						
							|  |  |  |  * \ingroup PCM | 
					
						
							| 
									
										
										
										
											2001-11-19 08:14:21 +00:00
										 |  |  |  * See the \ref pcm page for more details. | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  |  * \{ | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | size_t snd_pcm_access_mask_sizeof(void); | 
					
						
							|  |  |  | /** \hideinitializer
 | 
					
						
							|  |  |  |  * \brief allocate an empty #snd_pcm_access_mask_t using standard alloca | 
					
						
							|  |  |  |  * \param ptr returned pointer | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2007-10-25 15:36:03 +02:00
										 |  |  | #define snd_pcm_access_mask_alloca(ptr) __snd_alloca(ptr, snd_pcm_access_mask)
 | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | int snd_pcm_access_mask_malloc(snd_pcm_access_mask_t **ptr); | 
					
						
							|  |  |  | void snd_pcm_access_mask_free(snd_pcm_access_mask_t *obj); | 
					
						
							|  |  |  | void snd_pcm_access_mask_copy(snd_pcm_access_mask_t *dst, const snd_pcm_access_mask_t *src); | 
					
						
							|  |  |  | void snd_pcm_access_mask_none(snd_pcm_access_mask_t *mask); | 
					
						
							|  |  |  | void snd_pcm_access_mask_any(snd_pcm_access_mask_t *mask); | 
					
						
							|  |  |  | int snd_pcm_access_mask_test(const snd_pcm_access_mask_t *mask, snd_pcm_access_t val); | 
					
						
							| 
									
										
										
										
											2001-12-11 15:05:45 +00:00
										 |  |  | int snd_pcm_access_mask_empty(const snd_pcm_access_mask_t *mask); | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | void snd_pcm_access_mask_set(snd_pcm_access_mask_t *mask, snd_pcm_access_t val); | 
					
						
							|  |  |  | void snd_pcm_access_mask_reset(snd_pcm_access_mask_t *mask, snd_pcm_access_t val); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** \} */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /**
 | 
					
						
							|  |  |  |  * \defgroup PCM_Format Format Mask Functions | 
					
						
							|  |  |  |  * \ingroup PCM | 
					
						
							| 
									
										
										
										
											2001-11-19 08:14:21 +00:00
										 |  |  |  * See the \ref pcm page for more details. | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  |  * \{ | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | size_t snd_pcm_format_mask_sizeof(void); | 
					
						
							|  |  |  | /** \hideinitializer
 | 
					
						
							|  |  |  |  * \brief allocate an empty #snd_pcm_format_mask_t using standard alloca | 
					
						
							|  |  |  |  * \param ptr returned pointer | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2007-10-25 15:36:03 +02:00
										 |  |  | #define snd_pcm_format_mask_alloca(ptr) __snd_alloca(ptr, snd_pcm_format_mask)
 | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | int snd_pcm_format_mask_malloc(snd_pcm_format_mask_t **ptr); | 
					
						
							|  |  |  | void snd_pcm_format_mask_free(snd_pcm_format_mask_t *obj); | 
					
						
							|  |  |  | void snd_pcm_format_mask_copy(snd_pcm_format_mask_t *dst, const snd_pcm_format_mask_t *src); | 
					
						
							|  |  |  | void snd_pcm_format_mask_none(snd_pcm_format_mask_t *mask); | 
					
						
							|  |  |  | void snd_pcm_format_mask_any(snd_pcm_format_mask_t *mask); | 
					
						
							|  |  |  | int snd_pcm_format_mask_test(const snd_pcm_format_mask_t *mask, snd_pcm_format_t val); | 
					
						
							| 
									
										
										
										
											2001-11-26 15:16:01 +00:00
										 |  |  | int snd_pcm_format_mask_empty(const snd_pcm_format_mask_t *mask); | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | void snd_pcm_format_mask_set(snd_pcm_format_mask_t *mask, snd_pcm_format_t val); | 
					
						
							|  |  |  | void snd_pcm_format_mask_reset(snd_pcm_format_mask_t *mask, snd_pcm_format_t val); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** \} */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /**
 | 
					
						
							|  |  |  |  * \defgroup PCM_SubFormat Subformat Mask Functions | 
					
						
							|  |  |  |  * \ingroup PCM | 
					
						
							| 
									
										
										
										
											2001-11-19 08:14:21 +00:00
										 |  |  |  * See the \ref pcm page for more details. | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  |  * \{ | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | size_t snd_pcm_subformat_mask_sizeof(void); | 
					
						
							|  |  |  | /** \hideinitializer
 | 
					
						
							|  |  |  |  * \brief allocate an empty #snd_pcm_subformat_mask_t using standard alloca | 
					
						
							|  |  |  |  * \param ptr returned pointer | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2007-10-25 15:36:03 +02:00
										 |  |  | #define snd_pcm_subformat_mask_alloca(ptr) __snd_alloca(ptr, snd_pcm_subformat_mask)
 | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | int snd_pcm_subformat_mask_malloc(snd_pcm_subformat_mask_t **ptr); | 
					
						
							|  |  |  | void snd_pcm_subformat_mask_free(snd_pcm_subformat_mask_t *obj); | 
					
						
							|  |  |  | void snd_pcm_subformat_mask_copy(snd_pcm_subformat_mask_t *dst, const snd_pcm_subformat_mask_t *src); | 
					
						
							|  |  |  | void snd_pcm_subformat_mask_none(snd_pcm_subformat_mask_t *mask); | 
					
						
							|  |  |  | void snd_pcm_subformat_mask_any(snd_pcm_subformat_mask_t *mask); | 
					
						
							|  |  |  | int snd_pcm_subformat_mask_test(const snd_pcm_subformat_mask_t *mask, snd_pcm_subformat_t val); | 
					
						
							| 
									
										
										
										
											2001-11-30 17:36:45 +00:00
										 |  |  | int snd_pcm_subformat_mask_empty(const snd_pcm_subformat_mask_t *mask); | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | void snd_pcm_subformat_mask_set(snd_pcm_subformat_mask_t *mask, snd_pcm_subformat_t val); | 
					
						
							|  |  |  | void snd_pcm_subformat_mask_reset(snd_pcm_subformat_mask_t *mask, snd_pcm_subformat_t val); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** \} */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /**
 | 
					
						
							|  |  |  |  * \defgroup PCM_Status Status Functions | 
					
						
							|  |  |  |  * \ingroup PCM | 
					
						
							| 
									
										
										
										
											2001-11-19 08:14:21 +00:00
										 |  |  |  * See the \ref pcm page for more details. | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  |  * \{ | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-03-30 09:43:29 +00:00
										 |  |  | size_t snd_pcm_status_sizeof(void); | 
					
						
							|  |  |  | /** \hideinitializer
 | 
					
						
							|  |  |  |  * \brief allocate an invalid #snd_pcm_status_t using standard alloca | 
					
						
							|  |  |  |  * \param ptr returned pointer | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2007-10-25 15:36:03 +02:00
										 |  |  | #define snd_pcm_status_alloca(ptr) __snd_alloca(ptr, snd_pcm_status)
 | 
					
						
							| 
									
										
										
										
											2001-03-30 09:43:29 +00:00
										 |  |  | int snd_pcm_status_malloc(snd_pcm_status_t **ptr); | 
					
						
							|  |  |  | void snd_pcm_status_free(snd_pcm_status_t *obj); | 
					
						
							|  |  |  | void snd_pcm_status_copy(snd_pcm_status_t *dst, const snd_pcm_status_t *src); | 
					
						
							|  |  |  | snd_pcm_state_t snd_pcm_status_get_state(const snd_pcm_status_t *obj); | 
					
						
							|  |  |  | void snd_pcm_status_get_trigger_tstamp(const snd_pcm_status_t *obj, snd_timestamp_t *ptr); | 
					
						
							| 
									
										
										
										
											2003-02-28 20:29:23 +00:00
										 |  |  | void snd_pcm_status_get_trigger_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr); | 
					
						
							| 
									
										
										
										
											2001-03-30 09:43:29 +00:00
										 |  |  | void snd_pcm_status_get_tstamp(const snd_pcm_status_t *obj, snd_timestamp_t *ptr); | 
					
						
							| 
									
										
										
										
											2003-02-28 20:29:23 +00:00
										 |  |  | void snd_pcm_status_get_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr); | 
					
						
							| 
									
										
										
										
											2012-06-12 14:36:40 -05:00
										 |  |  | void snd_pcm_status_get_audio_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr); | 
					
						
							| 
									
										
										
										
											2015-07-01 15:40:55 -05:00
										 |  |  | void snd_pcm_status_get_driver_htstamp(const snd_pcm_status_t *obj, snd_htimestamp_t *ptr); | 
					
						
							|  |  |  | void snd_pcm_status_get_audio_htstamp_report(const snd_pcm_status_t *obj, | 
					
						
							|  |  |  | 					     snd_pcm_audio_tstamp_report_t *audio_tstamp_report); | 
					
						
							|  |  |  | void snd_pcm_status_set_audio_htstamp_config(snd_pcm_status_t *obj, | 
					
						
							|  |  |  | 					     snd_pcm_audio_tstamp_config_t *audio_tstamp_config); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static inline void snd_pcm_pack_audio_tstamp_config(unsigned int *data, | 
					
						
							|  |  |  | 						snd_pcm_audio_tstamp_config_t *config) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	*data = config->report_delay; | 
					
						
							|  |  |  | 	*data <<= 4; | 
					
						
							|  |  |  | 	*data |= config->type_requested; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static inline void snd_pcm_unpack_audio_tstamp_report(unsigned int data, unsigned int accuracy, | 
					
						
							|  |  |  | 						snd_pcm_audio_tstamp_report_t *report) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	data >>= 16; | 
					
						
							|  |  |  | 	report->valid = data & 1; | 
					
						
							|  |  |  | 	report->actual_type = (data >> 1) & 0xF; | 
					
						
							|  |  |  | 	report->accuracy_report = (data >> 5) & 1; | 
					
						
							|  |  |  | 	report->accuracy = accuracy; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-03-30 09:43:29 +00:00
										 |  |  | snd_pcm_sframes_t snd_pcm_status_get_delay(const snd_pcm_status_t *obj); | 
					
						
							|  |  |  | snd_pcm_uframes_t snd_pcm_status_get_avail(const snd_pcm_status_t *obj); | 
					
						
							|  |  |  | snd_pcm_uframes_t snd_pcm_status_get_avail_max(const snd_pcm_status_t *obj); | 
					
						
							| 
									
										
										
										
											2001-10-23 09:51:45 +00:00
										 |  |  | snd_pcm_uframes_t snd_pcm_status_get_overrange(const snd_pcm_status_t *obj); | 
					
						
							| 
									
										
										
										
											2001-03-30 09:43:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | /** \} */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /**
 | 
					
						
							|  |  |  |  * \defgroup PCM_Description Description Functions | 
					
						
							|  |  |  |  * \ingroup PCM | 
					
						
							| 
									
										
										
										
											2001-11-19 08:14:21 +00:00
										 |  |  |  * See the \ref pcm page for more details. | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  |  * \{ | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-12-22 08:31:22 +00:00
										 |  |  | const char *snd_pcm_type_name(snd_pcm_type_t type); | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | const char *snd_pcm_stream_name(const snd_pcm_stream_t stream); | 
					
						
							|  |  |  | const char *snd_pcm_access_name(const snd_pcm_access_t _access); | 
					
						
							|  |  |  | const char *snd_pcm_format_name(const snd_pcm_format_t format); | 
					
						
							|  |  |  | const char *snd_pcm_format_description(const snd_pcm_format_t format); | 
					
						
							|  |  |  | const char *snd_pcm_subformat_name(const snd_pcm_subformat_t subformat); | 
					
						
							|  |  |  | const char *snd_pcm_subformat_description(const snd_pcm_subformat_t subformat); | 
					
						
							| 
									
										
										
										
											2023-08-04 10:07:19 +02:00
										 |  |  | snd_pcm_subformat_t snd_pcm_subformat_value(const char* name); | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | snd_pcm_format_t snd_pcm_format_value(const char* name); | 
					
						
							|  |  |  | const char *snd_pcm_tstamp_mode_name(const snd_pcm_tstamp_t mode); | 
					
						
							|  |  |  | const char *snd_pcm_state_name(const snd_pcm_state_t state); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** \} */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /**
 | 
					
						
							|  |  |  |  * \defgroup PCM_Dump Debug Functions | 
					
						
							|  |  |  |  * \ingroup PCM | 
					
						
							| 
									
										
										
										
											2001-11-19 08:14:21 +00:00
										 |  |  |  * See the \ref pcm page for more details. | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  |  * \{ | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | int snd_pcm_dump(snd_pcm_t *pcm, snd_output_t *out); | 
					
						
							|  |  |  | int snd_pcm_dump_hw_setup(snd_pcm_t *pcm, snd_output_t *out); | 
					
						
							|  |  |  | int snd_pcm_dump_sw_setup(snd_pcm_t *pcm, snd_output_t *out); | 
					
						
							|  |  |  | int snd_pcm_dump_setup(snd_pcm_t *pcm, snd_output_t *out); | 
					
						
							|  |  |  | int snd_pcm_hw_params_dump(snd_pcm_hw_params_t *params, snd_output_t *out); | 
					
						
							|  |  |  | int snd_pcm_sw_params_dump(snd_pcm_sw_params_t *params, snd_output_t *out); | 
					
						
							|  |  |  | int snd_pcm_status_dump(snd_pcm_status_t *status, snd_output_t *out); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** \} */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /**
 | 
					
						
							|  |  |  |  * \defgroup PCM_Direct Direct Access (MMAP) Functions | 
					
						
							|  |  |  |  * \ingroup PCM | 
					
						
							| 
									
										
										
										
											2001-11-19 08:14:21 +00:00
										 |  |  |  * See the \ref pcm page for more details. | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  |  * \{ | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 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); | 
					
						
							| 
									
										
										
										
											2001-12-11 15:27:26 +00:00
										 |  |  | snd_pcm_sframes_t snd_pcm_mmap_commit(snd_pcm_t *pcm, | 
					
						
							|  |  |  | 				      snd_pcm_uframes_t offset, | 
					
						
							|  |  |  | 				      snd_pcm_uframes_t frames); | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | snd_pcm_sframes_t snd_pcm_mmap_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size); | 
					
						
							|  |  |  | snd_pcm_sframes_t snd_pcm_mmap_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size); | 
					
						
							|  |  |  | snd_pcm_sframes_t snd_pcm_mmap_writen(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size); | 
					
						
							|  |  |  | snd_pcm_sframes_t snd_pcm_mmap_readn(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size);                                                                 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** \} */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /**
 | 
					
						
							|  |  |  |  * \defgroup PCM_Helpers Helper Functions | 
					
						
							|  |  |  |  * \ingroup PCM | 
					
						
							| 
									
										
										
										
											2001-11-19 08:14:21 +00:00
										 |  |  |  * See the \ref pcm page for more details. | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  |  * \{ | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | int snd_pcm_format_signed(snd_pcm_format_t format); | 
					
						
							|  |  |  | int snd_pcm_format_unsigned(snd_pcm_format_t format); | 
					
						
							|  |  |  | int snd_pcm_format_linear(snd_pcm_format_t format); | 
					
						
							| 
									
										
										
										
											2001-11-26 16:08:49 +00:00
										 |  |  | int snd_pcm_format_float(snd_pcm_format_t format); | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | int snd_pcm_format_little_endian(snd_pcm_format_t format); | 
					
						
							|  |  |  | int snd_pcm_format_big_endian(snd_pcm_format_t format); | 
					
						
							|  |  |  | int snd_pcm_format_cpu_endian(snd_pcm_format_t format); | 
					
						
							|  |  |  | int snd_pcm_format_width(snd_pcm_format_t format);			/* in bits */ | 
					
						
							|  |  |  | int snd_pcm_format_physical_width(snd_pcm_format_t format);		/* in bits */ | 
					
						
							| 
									
										
										
										
											2002-06-26 02:04:11 +00:00
										 |  |  | snd_pcm_format_t snd_pcm_build_linear_format(int width, int pwidth, int unsignd, int big_endian); | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples); | 
					
						
							| 
									
										
										
										
											2017-07-14 16:18:11 +02:00
										 |  |  | uint8_t snd_pcm_format_silence(snd_pcm_format_t format); | 
					
						
							|  |  |  | uint16_t snd_pcm_format_silence_16(snd_pcm_format_t format); | 
					
						
							|  |  |  | uint32_t snd_pcm_format_silence_32(snd_pcm_format_t format); | 
					
						
							|  |  |  | uint64_t snd_pcm_format_silence_64(snd_pcm_format_t format); | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int samples); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | snd_pcm_sframes_t snd_pcm_bytes_to_frames(snd_pcm_t *pcm, ssize_t bytes); | 
					
						
							|  |  |  | ssize_t snd_pcm_frames_to_bytes(snd_pcm_t *pcm, snd_pcm_sframes_t frames); | 
					
						
							| 
									
										
										
										
											2002-04-23 15:51:29 +00:00
										 |  |  | long snd_pcm_bytes_to_samples(snd_pcm_t *pcm, ssize_t bytes); | 
					
						
							|  |  |  | ssize_t snd_pcm_samples_to_bytes(snd_pcm_t *pcm, long samples); | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 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); | 
					
						
							|  |  |  | 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); | 
					
						
							|  |  |  | 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); | 
					
						
							|  |  |  | 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); | 
					
						
							| 
									
										
										
										
											2018-03-13 09:34:43 +01:00
										 |  |  | 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); | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-06-21 14:21:26 +02:00
										 |  |  | /**
 | 
					
						
							|  |  |  |  * \brief get the address of the given PCM channel area | 
					
						
							|  |  |  |  * \param area PCM channel area | 
					
						
							|  |  |  |  * \param offset Offset in frames | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Returns the pointer corresponding to the given offset on the channel area. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | static inline void *snd_pcm_channel_area_addr(const snd_pcm_channel_area_t *area, snd_pcm_uframes_t offset) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	return (char *)area->addr + (area->first + area->step * offset) / 8; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /**
 | 
					
						
							|  |  |  |  * \brief get the step size of the given PCM channel area in bytes | 
					
						
							|  |  |  |  * \param area PCM channel area | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Returns the step size in bytes from the given channel area. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | static inline unsigned int snd_pcm_channel_area_step(const snd_pcm_channel_area_t *area) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	return area->step / 8; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | /** \} */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /**
 | 
					
						
							|  |  |  |  * \defgroup PCM_Hook Hook Extension | 
					
						
							|  |  |  |  * \ingroup PCM | 
					
						
							| 
									
										
										
										
											2001-11-19 08:14:21 +00:00
										 |  |  |  * See the \ref pcm page for more details. | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  |  * \{ | 
					
						
							| 
									
										
										
										
											2001-03-30 09:43:29 +00:00
										 |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-07-11 15:48:27 +00:00
										 |  |  | /** type of pcm hook */ | 
					
						
							| 
									
										
										
										
											2001-06-04 18:04:18 +00:00
										 |  |  | typedef enum _snd_pcm_hook_type { | 
					
						
							| 
									
										
										
										
											2001-08-20 13:15:30 +00:00
										 |  |  | 	SND_PCM_HOOK_TYPE_HW_PARAMS = 0, | 
					
						
							| 
									
										
										
										
											2001-06-06 11:49:52 +00:00
										 |  |  | 	SND_PCM_HOOK_TYPE_HW_FREE, | 
					
						
							|  |  |  | 	SND_PCM_HOOK_TYPE_CLOSE, | 
					
						
							| 
									
										
										
										
											2002-02-05 11:36:20 +00:00
										 |  |  | 	SND_PCM_HOOK_TYPE_LAST = SND_PCM_HOOK_TYPE_CLOSE | 
					
						
							| 
									
										
										
										
											2001-06-04 18:04:18 +00:00
										 |  |  | } snd_pcm_hook_type_t; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-07-11 15:48:27 +00:00
										 |  |  | /** PCM hook container */ | 
					
						
							| 
									
										
										
										
											2001-06-04 18:04:18 +00:00
										 |  |  | typedef struct _snd_pcm_hook snd_pcm_hook_t; | 
					
						
							| 
									
										
										
										
											2001-07-11 15:48:27 +00:00
										 |  |  | /** PCM hook callback function */ | 
					
						
							| 
									
										
										
										
											2001-06-04 18:04:18 +00:00
										 |  |  | typedef int (*snd_pcm_hook_func_t)(snd_pcm_hook_t *hook); | 
					
						
							|  |  |  | snd_pcm_t *snd_pcm_hook_get_pcm(snd_pcm_hook_t *hook); | 
					
						
							|  |  |  | void *snd_pcm_hook_get_private(snd_pcm_hook_t *hook); | 
					
						
							| 
									
										
										
										
											2001-06-11 13:35:48 +00:00
										 |  |  | void snd_pcm_hook_set_private(snd_pcm_hook_t *hook, void *private_data); | 
					
						
							| 
									
										
										
										
											2001-06-04 18:04:18 +00:00
										 |  |  | 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); | 
					
						
							|  |  |  | int snd_pcm_hook_remove(snd_pcm_hook_t *hook); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | /** \} */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /**
 | 
					
						
							|  |  |  |  * \defgroup PCM_Scope Scope Plugin Extension | 
					
						
							|  |  |  |  * \ingroup PCM | 
					
						
							| 
									
										
										
										
											2001-11-19 08:14:21 +00:00
										 |  |  |  * See the \ref pcm page for more details. | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  |  * \{ | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** #SND_PCM_TYPE_METER scope functions */ | 
					
						
							|  |  |  | typedef struct _snd_pcm_scope_ops { | 
					
						
							|  |  |  | 	/** \brief Enable and prepare it using current params
 | 
					
						
							|  |  |  | 	 * \param scope scope handle | 
					
						
							|  |  |  | 	 */ | 
					
						
							|  |  |  | 	int (*enable)(snd_pcm_scope_t *scope); | 
					
						
							|  |  |  | 	/** \brief Disable
 | 
					
						
							|  |  |  | 	 * \param scope scope handle | 
					
						
							|  |  |  | 	 */ | 
					
						
							|  |  |  | 	void (*disable)(snd_pcm_scope_t *scope); | 
					
						
							|  |  |  | 	/** \brief PCM has been started
 | 
					
						
							|  |  |  | 	 * \param scope scope handle | 
					
						
							|  |  |  | 	 */ | 
					
						
							|  |  |  | 	void (*start)(snd_pcm_scope_t *scope); | 
					
						
							|  |  |  | 	/** \brief PCM has been stopped
 | 
					
						
							|  |  |  | 	 * \param scope scope handle | 
					
						
							|  |  |  | 	 */ | 
					
						
							|  |  |  | 	void (*stop)(snd_pcm_scope_t *scope); | 
					
						
							|  |  |  | 	/** \brief New frames are present
 | 
					
						
							|  |  |  | 	 * \param scope scope handle | 
					
						
							|  |  |  | 	 */ | 
					
						
							|  |  |  | 	void (*update)(snd_pcm_scope_t *scope); | 
					
						
							|  |  |  | 	/** \brief Reset status
 | 
					
						
							|  |  |  | 	 * \param scope scope handle | 
					
						
							|  |  |  | 	 */ | 
					
						
							|  |  |  | 	void (*reset)(snd_pcm_scope_t *scope); | 
					
						
							|  |  |  | 	/** \brief PCM is closing
 | 
					
						
							|  |  |  | 	 * \param scope scope handle | 
					
						
							|  |  |  | 	 */ | 
					
						
							|  |  |  | 	void (*close)(snd_pcm_scope_t *scope); | 
					
						
							|  |  |  | } snd_pcm_scope_ops_t; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | snd_pcm_uframes_t snd_pcm_meter_get_bufsize(snd_pcm_t *pcm); | 
					
						
							|  |  |  | unsigned int snd_pcm_meter_get_channels(snd_pcm_t *pcm); | 
					
						
							|  |  |  | unsigned int snd_pcm_meter_get_rate(snd_pcm_t *pcm); | 
					
						
							|  |  |  | snd_pcm_uframes_t snd_pcm_meter_get_now(snd_pcm_t *pcm); | 
					
						
							|  |  |  | snd_pcm_uframes_t snd_pcm_meter_get_boundary(snd_pcm_t *pcm); | 
					
						
							|  |  |  | int snd_pcm_meter_add_scope(snd_pcm_t *pcm, snd_pcm_scope_t *scope); | 
					
						
							|  |  |  | snd_pcm_scope_t *snd_pcm_meter_search_scope(snd_pcm_t *pcm, const char *name); | 
					
						
							|  |  |  | int snd_pcm_scope_malloc(snd_pcm_scope_t **ptr); | 
					
						
							| 
									
										
										
										
											2009-08-10 10:08:25 +02:00
										 |  |  | void snd_pcm_scope_set_ops(snd_pcm_scope_t *scope, | 
					
						
							|  |  |  | 			   const snd_pcm_scope_ops_t *val); | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | void snd_pcm_scope_set_name(snd_pcm_scope_t *scope, const char *val); | 
					
						
							|  |  |  | const char *snd_pcm_scope_get_name(snd_pcm_scope_t *scope); | 
					
						
							|  |  |  | void *snd_pcm_scope_get_callback_private(snd_pcm_scope_t *scope); | 
					
						
							|  |  |  | void snd_pcm_scope_set_callback_private(snd_pcm_scope_t *scope, void *val); | 
					
						
							|  |  |  | int snd_pcm_scope_s16_open(snd_pcm_t *pcm, const char *name, | 
					
						
							|  |  |  | 			   snd_pcm_scope_t **scopep); | 
					
						
							|  |  |  | int16_t *snd_pcm_scope_s16_get_channel_buffer(snd_pcm_scope_t *scope, | 
					
						
							|  |  |  | 					      unsigned int channel); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** \} */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-03-14 18:37:55 +00:00
										 |  |  | /**
 | 
					
						
							|  |  |  |  * \defgroup PCM_Simple Simple setup functions | 
					
						
							|  |  |  |  * \ingroup PCM | 
					
						
							|  |  |  |  * See the \ref pcm page for more details. | 
					
						
							|  |  |  |  * \{ | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** Simple PCM latency type */ | 
					
						
							|  |  |  | typedef enum _snd_spcm_latency { | 
					
						
							|  |  |  | 	/** standard latency - for standard playback or capture
 | 
					
						
							|  |  |  |             (estimated latency in one direction 350ms) */ | 
					
						
							|  |  |  | 	SND_SPCM_LATENCY_STANDARD = 0, | 
					
						
							|  |  |  | 	/** medium latency - software phones etc.
 | 
					
						
							|  |  |  | 	    (estimated latency in one direction maximally 25ms */ | 
					
						
							|  |  |  | 	SND_SPCM_LATENCY_MEDIUM, | 
					
						
							|  |  |  | 	/** realtime latency - realtime applications (effect processors etc.)
 | 
					
						
							|  |  |  | 	    (estimated latency in one direction 5ms and better) */ | 
					
						
							|  |  |  | 	SND_SPCM_LATENCY_REALTIME | 
					
						
							|  |  |  | } snd_spcm_latency_t; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** Simple PCM xrun type */ | 
					
						
							|  |  |  | typedef enum _snd_spcm_xrun_type { | 
					
						
							|  |  |  | 	/** driver / library will ignore all xruns, the stream runs forever */ | 
					
						
							|  |  |  | 	SND_SPCM_XRUN_IGNORE = 0, | 
					
						
							|  |  |  | 	/** driver / library stops the stream when an xrun occurs */ | 
					
						
							|  |  |  | 	SND_SPCM_XRUN_STOP | 
					
						
							|  |  |  | } snd_spcm_xrun_type_t; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-03-26 16:08:01 +00:00
										 |  |  | /** Simple PCM duplex type */ | 
					
						
							|  |  |  | typedef enum _snd_spcm_duplex_type { | 
					
						
							|  |  |  | 	/** liberal duplex - the buffer and period sizes might not match */ | 
					
						
							|  |  |  | 	SND_SPCM_DUPLEX_LIBERAL = 0, | 
					
						
							|  |  |  | 	/** pedantic duplex - the buffer and period sizes MUST match */ | 
					
						
							|  |  |  | 	SND_SPCM_DUPLEX_PEDANTIC | 
					
						
							|  |  |  | } snd_spcm_duplex_type_t; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-03-14 18:37:55 +00:00
										 |  |  | 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, | 
					
						
							| 
									
										
										
										
											2004-09-21 10:35:57 +00:00
										 |  |  | 		  snd_pcm_access_t _access, | 
					
						
							| 
									
										
										
										
											2004-03-14 18:37:55 +00:00
										 |  |  | 		  snd_spcm_xrun_type_t xrun_type); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 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, | 
					
						
							| 
									
										
										
										
											2004-09-21 10:35:57 +00:00
										 |  |  | 			 snd_pcm_access_t _access, | 
					
						
							| 
									
										
										
										
											2004-03-26 16:08:01 +00:00
										 |  |  | 			 snd_spcm_xrun_type_t xrun_type, | 
					
						
							|  |  |  | 			 snd_spcm_duplex_type_t duplex_type); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 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); | 
					
						
							| 
									
										
										
										
											2004-03-14 18:37:55 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | /** \} */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | /**
 | 
					
						
							|  |  |  |  * \defgroup PCM_Deprecated Deprecated Functions | 
					
						
							|  |  |  |  * \ingroup PCM | 
					
						
							| 
									
										
										
										
											2001-11-19 08:14:21 +00:00
										 |  |  |  * See the \ref pcm page for more details. | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  |  * \{ | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											1998-08-13 15:42:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-03-12 20:14:33 +00:00
										 |  |  | /* Deprecated functions, for compatibility */ | 
					
						
							| 
									
										
										
										
											2007-12-21 15:25:47 +01:00
										 |  |  | const char *snd_pcm_start_mode_name(snd_pcm_start_t mode) __attribute__((deprecated)); | 
					
						
							|  |  |  | const char *snd_pcm_xrun_mode_name(snd_pcm_xrun_t mode) __attribute__((deprecated)); | 
					
						
							|  |  |  | int snd_pcm_sw_params_set_start_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_start_t val) __attribute__((deprecated)); | 
					
						
							|  |  |  | snd_pcm_start_t snd_pcm_sw_params_get_start_mode(const snd_pcm_sw_params_t *params) __attribute__((deprecated)); | 
					
						
							|  |  |  | int snd_pcm_sw_params_set_xrun_mode(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_xrun_t val) __attribute__((deprecated)); | 
					
						
							|  |  |  | snd_pcm_xrun_t snd_pcm_sw_params_get_xrun_mode(const snd_pcm_sw_params_t *params) __attribute__((deprecated)); | 
					
						
							| 
									
										
										
										
											2008-01-09 09:45:26 +01:00
										 |  |  | #if !defined(ALSA_LIBRARY_BUILD) && !defined(ALSA_PCM_OLD_SW_PARAMS_API)
 | 
					
						
							| 
									
										
										
										
											2008-01-08 18:35:29 +01:00
										 |  |  | int snd_pcm_sw_params_set_xfer_align(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val) __attribute__((deprecated)); | 
					
						
							|  |  |  | int snd_pcm_sw_params_get_xfer_align(const snd_pcm_sw_params_t *params, snd_pcm_uframes_t *val) __attribute__((deprecated)); | 
					
						
							| 
									
										
										
										
											2008-01-08 18:36:18 +01:00
										 |  |  | int snd_pcm_sw_params_set_sleep_min(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, unsigned int val) __attribute__((deprecated)); | 
					
						
							|  |  |  | int snd_pcm_sw_params_get_sleep_min(const snd_pcm_sw_params_t *params, unsigned int *val) __attribute__((deprecated)); | 
					
						
							| 
									
										
										
										
											2008-02-11 14:19:32 +01:00
										 |  |  | #endif /* !ALSA_LIBRARY_BUILD && !ALSA_PCM_OLD_SW_PARAMS_API */
 | 
					
						
							|  |  |  | #if !defined(ALSA_LIBRARY_BUILD) && !defined(ALSA_PCM_OLD_HW_PARAMS_API)
 | 
					
						
							| 
									
										
										
										
											2008-01-08 18:36:18 +01:00
										 |  |  | int snd_pcm_hw_params_get_tick_time(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir) __attribute__((deprecated)); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_tick_time_min(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir) __attribute__((deprecated)); | 
					
						
							|  |  |  | int snd_pcm_hw_params_get_tick_time_max(const snd_pcm_hw_params_t *params, unsigned int *val, int *dir) __attribute__((deprecated)); | 
					
						
							|  |  |  | int snd_pcm_hw_params_test_tick_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir) __attribute__((deprecated)); | 
					
						
							|  |  |  | int snd_pcm_hw_params_set_tick_time(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir) __attribute__((deprecated)); | 
					
						
							|  |  |  | int 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)); | 
					
						
							|  |  |  | int 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)); | 
					
						
							|  |  |  | 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) __attribute__((deprecated)); | 
					
						
							|  |  |  | int 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)); | 
					
						
							|  |  |  | int 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)); | 
					
						
							|  |  |  | int 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)); | 
					
						
							| 
									
										
										
										
											2008-02-11 14:19:32 +01:00
										 |  |  | #endif /* !ALSA_LIBRARY_BUILD && !ALSA_PCM_OLD_HW_PARAMS_API */
 | 
					
						
							| 
									
										
										
										
											2001-10-23 09:51:45 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-04-24 13:02:58 +00:00
										 |  |  | /** \} */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-11-14 11:40:46 +00:00
										 |  |  | #ifdef __cplusplus
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-09-13 11:38:32 +00:00
										 |  |  | #endif /* __ALSA_PCM_H */
 |