Minor alsa fix
authorMark Spencer <markster@digium.com>
Thu, 13 Nov 2003 21:57:49 +0000 (21:57 +0000)
committerMark Spencer <markster@digium.com>
Thu, 13 Nov 2003 21:57:49 +0000 (21:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1744 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_alsa.c

index e7ec368..d17d1e3 100755 (executable)
@@ -423,7 +423,7 @@ static snd_pcm_t *alsa_card_init(char *dev, snd_pcm_stream_t stream)
        }
 #endif
 
        }
 #endif
 
-       err = snd_pcm_sw_params_set_silence_threshold(handle, swparams, buffer_size);
+       err = snd_pcm_sw_params_set_silence_threshold(handle, swparams, silencethreshold);
        if (err < 0) {
                ast_log(LOG_ERROR, "Unable to set silence threshold: %s\n", snd_strerror(err));
        }
        if (err < 0) {
                ast_log(LOG_ERROR, "Unable to set silence threshold: %s\n", snd_strerror(err));
        }