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

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

Set silence threshold inside a software configuration container.

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

A portion of playback buffer is overwritten with silence (see snd_pcm_sw_params_set_silence_size) when playback underrun is nearer than silence threshold.

Definition at line 5688 of file pcm.c.

      assert(pcm && params);
      if (CHECK_SANITY(val >= pcm->buffer_size)) {
            SNDMSG("invalid silent_threshold value %ld (buffer_size = %ld)",
                   val, pcm->buffer_size);
            return -EINVAL;
      params->silence_threshold = val;
      return 0;

Generated by  Doxygen 1.6.0   Back to index