Deprecated Functions
Overview
See the PCM (digital audio) interface page for more details. Moreā¦
// global functions const char* snd_pcm_start_mode_name(snd_pcm_start_t mode); const char* snd_pcm_xrun_mode_name(snd_pcm_xrun_t mode); int snd_pcm_sw_params_set_start_mode( snd_pcm_t* pcm, snd_pcm_sw_params_t* params, snd_pcm_start_t val ); snd_pcm_start_t snd_pcm_sw_params_get_start_mode(const snd_pcm_sw_params_t* params); int snd_pcm_sw_params_set_xrun_mode( snd_pcm_t* pcm, snd_pcm_sw_params_t* params, snd_pcm_xrun_t val ); snd_pcm_xrun_t snd_pcm_sw_params_get_xrun_mode(const snd_pcm_sw_params_t* params); int snd_pcm_sw_params_set_xfer_align( snd_pcm_t* pcm, snd_pcm_sw_params_t* params, snd_pcm_uframes_t val ); int snd_pcm_sw_params_get_xfer_align( const snd_pcm_sw_params_t* params, snd_pcm_uframes_t* val ); int snd_pcm_sw_params_set_sleep_min( snd_pcm_t* pcm, snd_pcm_sw_params_t* params, unsigned int val ); int snd_pcm_sw_params_get_sleep_min( const snd_pcm_sw_params_t* params, unsigned int* val ); int snd_pcm_hw_params_get_tick_time( const snd_pcm_hw_params_t* params, unsigned int* val, int* dir ); int snd_pcm_hw_params_get_tick_time_min( const snd_pcm_hw_params_t* params, unsigned int* val, int* dir ); int snd_pcm_hw_params_get_tick_time_max( const snd_pcm_hw_params_t* params, unsigned int* val, int* dir ); int snd_pcm_hw_params_test_tick_time( snd_pcm_t* pcm, snd_pcm_hw_params_t* params, unsigned int val, int dir ); int snd_pcm_hw_params_set_tick_time( snd_pcm_t* pcm, snd_pcm_hw_params_t* params, unsigned int val, int dir ); int snd_pcm_hw_params_set_tick_time_min( snd_pcm_t* pcm, snd_pcm_hw_params_t* params, unsigned int* val, int* dir ); int snd_pcm_hw_params_set_tick_time_max( snd_pcm_t* pcm, snd_pcm_hw_params_t* params, unsigned int* val, int* dir ); 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 ); int snd_pcm_hw_params_set_tick_time_near( snd_pcm_t* pcm, snd_pcm_hw_params_t* params, unsigned int* val, int* dir ); int snd_pcm_hw_params_set_tick_time_first( snd_pcm_t* pcm, snd_pcm_hw_params_t* params, unsigned int* val, int* dir ); int snd_pcm_hw_params_set_tick_time_last( snd_pcm_t* pcm, snd_pcm_hw_params_t* params, unsigned int* val, int* dir );
Detailed Documentation
See the PCM (digital audio) interface page for more details.
Global Functions
const char* snd_pcm_start_mode_name(snd_pcm_start_t mode)
(DEPRECATED) get name of PCM start mode setting
Parameters:
mode  | 
PCM start mode  | 
Returns:
ascii name of PCM start mode setting
const char* snd_pcm_xrun_mode_name(snd_pcm_xrun_t mode)
(DEPRECATED) get name of PCM xrun mode setting
Parameters:
mode  | 
PCM xrun mode  | 
Returns:
ascii name of PCM xrun mode setting
int snd_pcm_sw_params_set_start_mode( snd_pcm_t* pcm, snd_pcm_sw_params_t* params, snd_pcm_start_t val )
(DEPRECATED) Set start mode inside a software configuration container
Parameters:
pcm  | 
PCM handle  | 
params  | 
Software configuration container  | 
val  | 
Start mode  | 
Returns:
0 otherwise a negative error code
snd_pcm_start_t snd_pcm_sw_params_get_start_mode(const snd_pcm_sw_params_t* params)
(DEPRECATED) Get start mode from a software configuration container
Parameters:
params  | 
Software configuration container  | 
Returns:
start mode
int snd_pcm_sw_params_set_xrun_mode( snd_pcm_t* pcm, snd_pcm_sw_params_t* params, snd_pcm_xrun_t val )
(DEPRECATED) Set xrun mode inside a software configuration container
Parameters:
pcm  | 
PCM handle  | 
params  | 
Software configuration container  | 
val  | 
Xrun mode  | 
Returns:
0 otherwise a negative error code
snd_pcm_xrun_t snd_pcm_sw_params_get_xrun_mode(const snd_pcm_sw_params_t* params)
(DEPRECATED) Get xrun mode from a software configuration container
Parameters:
params  | 
Software configuration container  | 
Returns:
xrun mode
int snd_pcm_sw_params_set_xfer_align( snd_pcm_t* pcm, snd_pcm_sw_params_t* params, snd_pcm_uframes_t val )
(DEPRECATED) Set xfer align inside a software configuration container
Parameters:
pcm  | 
PCM handle  | 
params  | 
Software configuration container  | 
val  | 
Chunk size (frames are attempted to be transferred in chunks)  | 
Returns:
0 otherwise a negative error code
int snd_pcm_sw_params_get_xfer_align( const snd_pcm_sw_params_t* params, snd_pcm_uframes_t* val )
(DEPRECATED) Get xfer align from a software configuration container
Parameters:
params  | 
Software configuration container  | 
val  | 
returned chunk size (frames are attempted to be transferred in chunks)  | 
Returns:
0 otherwise a negative error code
int snd_pcm_sw_params_set_sleep_min( snd_pcm_t* pcm, snd_pcm_sw_params_t* params, unsigned int val )
(DEPRECATED) Set minimum number of ticks to sleep inside a software configuration container
Parameters:
pcm  | 
PCM handle  | 
params  | 
Software configuration container  | 
val  | 
Minimum ticks to sleep or 0 to disable the use of tick timer  | 
Returns:
0 otherwise a negative error code
int snd_pcm_sw_params_get_sleep_min( const snd_pcm_sw_params_t* params, unsigned int* val )
(DEPRECATED) Get minimum numbers of ticks to sleep from a software configuration container
Parameters:
params  | 
Software configuration container  | 
val  | 
returned minimum number of ticks to sleep or 0 if tick timer is disabled  | 
Returns:
0 otherwise a negative error code
int snd_pcm_hw_params_get_tick_time( const snd_pcm_hw_params_t* params, unsigned int* val, int* dir )
(DEPRECATED) Extract tick time from a configuration space
Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
Parameters:
params  | 
Configuration space  | 
val  | 
Returned approximate tick duration in us  | 
dir  | 
Sub unit direction  | 
Returns:
0 otherwise a negative error code if the configuration space does not contain a single value
int snd_pcm_hw_params_get_tick_time_min( const snd_pcm_hw_params_t* params, unsigned int* val, int* dir )
(DEPRECATED) Extract minimum tick time from a configuration space
Exact value is <,=,> the returned one following dir (-1,0,1)
Parameters:
params  | 
Configuration space  | 
val  | 
Returned approximate minimum tick duration in us  | 
dir  | 
Sub unit direction  | 
Returns:
0 otherwise a negative error code
int snd_pcm_hw_params_get_tick_time_max( const snd_pcm_hw_params_t* params, unsigned int* val, int* dir )
(DEPRECATED) Extract maximum tick time from a configuration space
Exact value is <,=,> the returned one following dir (-1,0,1)
Parameters:
params  | 
Configuration space  | 
val  | 
Returned approximate maximum tick duration in us  | 
dir  | 
Sub unit direction  | 
Returns:
0 otherwise a negative error code
int snd_pcm_hw_params_test_tick_time( snd_pcm_t* pcm, snd_pcm_hw_params_t* params, unsigned int val, int dir )
(DEPRECATED) Verify if a tick time is available inside a configuration space for a PCM
Wanted exact value is <,=,> val following dir (-1,0,1)
Parameters:
pcm  | 
PCM handle  | 
params  | 
Configuration space  | 
val  | 
approximate tick duration in us  | 
dir  | 
Sub unit direction  | 
Returns:
0 if available a negative error code otherwise
int snd_pcm_hw_params_set_tick_time( snd_pcm_t* pcm, snd_pcm_hw_params_t* params, unsigned int val, int dir )
(DEPRECATED) Restrict a configuration space to contain only one tick time
Wanted exact value is <,=,> val following dir (-1,0,1)
Parameters:
pcm  | 
PCM handle  | 
params  | 
Configuration space  | 
val  | 
approximate tick duration in us  | 
dir  | 
Sub unit direction  | 
Returns:
0 otherwise a negative error code if configuration space would become empty
int snd_pcm_hw_params_set_tick_time_min( snd_pcm_t* pcm, snd_pcm_hw_params_t* params, unsigned int* val, int* dir )
(DEPRECATED) Restrict a configuration space with a minimum tick time
Wanted/actual exact minimum is <,=,> val following dir (-1,0,1)
Parameters:
pcm  | 
PCM handle  | 
params  | 
Configuration space  | 
val  | 
approximate minimum tick duration in us (on return filled with actual minimum)  | 
dir  | 
Sub unit direction (on return filled with actual direction)  | 
Returns:
0 otherwise a negative error code if configuration space would become empty
int snd_pcm_hw_params_set_tick_time_max( snd_pcm_t* pcm, snd_pcm_hw_params_t* params, unsigned int* val, int* dir )
(DEPRECATED) Restrict a configuration space with a maximum tick time
Wanted/actual exact maximum is <,=,> val following dir (-1,0,1)
Parameters:
pcm  | 
PCM handle  | 
params  | 
Configuration space  | 
val  | 
approximate maximum tick duration in us (on return filled with actual maximum)  | 
dir  | 
Sub unit direction (on return filled with actual direction)  | 
Returns:
0 otherwise a negative error code if configuration space would become empty
int snd_pcm_hw_params_set_tick_time_minmax( snd_pcm_t* pcm, snd_pcm_hw_params_t* params, unsigned int* min, int* mindir, unsigned int* max, int* maxdir )
(DEPRECATED) Restrict a configuration space to have tick times in a given range
Wanted/actual exact min/max is <,=,> val following dir (-1,0,1)
Parameters:
pcm  | 
PCM handle  | 
params  | 
Configuration space  | 
min  | 
approximate minimum tick duration in us (on return filled with actual minimum)  | 
mindir  | 
Sub unit direction for minimum (on return filled with actual direction)  | 
max  | 
approximate maximum tick duration in us (on return filled with actual maximum)  | 
maxdir  | 
Sub unit direction for maximum (on return filled with actual direction)  | 
Returns:
0 otherwise a negative error code if configuration space would become empty
int snd_pcm_hw_params_set_tick_time_near( snd_pcm_t* pcm, snd_pcm_hw_params_t* params, unsigned int* val, int* dir )
(DEPRECATED) Restrict a configuration space to have tick time nearest to a target
target/chosen exact value is <,=,> val following dir (-1,0,1)
Parameters:
pcm  | 
PCM handle  | 
params  | 
Configuration space  | 
val  | 
approximate target tick duration in us / returned chosen approximate target tick duration in us  | 
dir  | 
Sub unit direction  | 
Returns:
0 otherwise a negative error code if configuration space is empty
int snd_pcm_hw_params_set_tick_time_first( snd_pcm_t* pcm, snd_pcm_hw_params_t* params, unsigned int* val, int* dir )
(DEPRECATED) Restrict a configuration space to contain only its minimum tick time
Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
Parameters:
pcm  | 
PCM handle  | 
params  | 
Configuration space  | 
val  | 
Returned approximate minimum tick duration in us  | 
dir  | 
Sub unit direction  | 
Returns:
0 otherwise a negative error code
int snd_pcm_hw_params_set_tick_time_last( snd_pcm_t* pcm, snd_pcm_hw_params_t* params, unsigned int* val, int* dir )
(DEPRECATED) Restrict a configuration space to contain only its maximum tick time
Actual exact value is <,=,> the approximate one following dir (-1, 0, 1)
Parameters:
pcm  | 
PCM handle  | 
params  | 
Configuration space  | 
val  | 
Returned approximate maximum tick duration in us  | 
dir  | 
Sub unit direction  | 
Returns:
0 otherwise a negative error code