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

int snd_pcm_sw_params_set_stop_threshold ( snd_pcm_t *pcm  ATTRIBUTE_UNUSED,
snd_pcm_sw_params_t params,
snd_pcm_uframes_t  val 

Set stop threshold inside a software configuration container.

pcmPCM handle
paramsSoftware configuration container
valStop threshold in frames
0 otherwise a negative error code

PCM is automatically stopped in SND_PCM_STATE_XRUN state when available frames is >= threshold. If the stop threshold is equal to boundary (also software parameter - sw_param) then automatic stop will be disabled (thus device will do the endless loop in the ring buffer).

Definition at line 5643 of file pcm.c.

      assert(pcm && params);
      params->stop_threshold = val;
      return 0;

Generated by  Doxygen 1.6.0   Back to index