Add silence detection to app_record
[asterisk/asterisk.git] / dsp.c
diff --git a/dsp.c b/dsp.c
index 195a0da..1d058e6 100755 (executable)
--- a/dsp.c
+++ b/dsp.c
@@ -1267,6 +1267,11 @@ void ast_dsp_free(struct ast_dsp *dsp)
        free(dsp);
 }
 
+void ast_dsp_set_threshold(struct ast_dsp *dsp, int threshold)
+{
+       dsp->threshold = threshold;
+}
+
 void ast_dsp_set_busy_count(struct ast_dsp *dsp, int cadences)
 {
        if (cadences < 1)