Re: Is calling snd_pcm_sw_params() mandatory ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

Add to Google Powered by Linux