Logo Search packages:      
Sourcecode: alsa-lib version File versions  Download package

int snd_pcm_sw_params_set_avail_min ( snd_pcm_t *pcm  ATTRIBUTE_UNUSED,
snd_pcm_sw_params_t params,
snd_pcm_uframes_t  val 
)

Set avail min inside a software configuration container.

Parameters:
pcmPCM handle
paramsSoftware configuration container
valMinimum avail frames to consider PCM ready
Returns:
0 otherwise a negative error code

Note: This is similar to setting an OSS wakeup point. The valid values for 'val' are determined by the specific hardware. Most PC sound cards can only accept power of 2 frame counts (i.e. 512, 1024, 2048). You cannot use this as a high resolution timer - it is limited to how often the sound card hardware raises an interrupt. Note that you can greatly improve the reponses using snd_pcm_sw_params_set_sleep_min where another timing source is used.

Definition at line 5520 of file pcm.c.

{
      assert(pcm && params);
      params->avail_min = val;
      return 0;
}

Generated by  Doxygen 1.6.0   Back to index