[alsa-devel] sw_params configuration clarification

Prasant J pj0585 at gmail.com
Mon Sep 17 12:08:49 CEST 2012


I'm using ALSA API (alsa-lib 1.0.25) for writing an audio application
for an embedded product.

This is my understanding of the sw_params configuration api: (Can
someone please confirm if the explanation is correct?)

snd_pcm_sw_params_set_start_threshold -- sets the minimum no. of
frames before which playback will not start.

snd_pcm_sw_params_stop_threshold -- sets the minimum no. of frames
when the playback stops (not completely clear)

snd_pcm_sw_params_set_silence_threshold -- sets the no. of frames for
inserting silence (equal to set by set_silence_size) when frames is
less than the value set.

Any info will be of help.


More information about the Alsa-devel mailing list