29 Nov
2010
29 Nov
'10
9:14 a.m.
Raymond Yau wrote:
Does alsa-lib has any check whether the application had called snd_pcm_sw_params() or it provide default values for those software parameters (e.g. start_threshold, stop_threshold)
The internal snd_pcm_sw_params_default() function does this:
params->tstamp_mode = SND_PCM_TSTAMP_NONE; params->period_step = 1; params->sleep_min = 0; params->avail_min = pcm->period_size; params->xfer_align = 1; params->start_threshold = 1; params->stop_threshold = pcm->buffer_size; params->silence_threshold = 0; params->silence_size = 0;
Regards, Clemens