From 7de3eaf3508c0c4104da12f5c6caa6147101ac1b Mon Sep 17 00:00:00 2001 From: Simon Wilson Date: Fri, 5 Aug 2011 12:00:00 -0700 Subject: Ensure threasholds are zeroed before opening pcm Fixes tinyplay and tinycap after a recent change to allow threasholds to be set in the pcm module. --- tinycap.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tinycap.c') diff --git a/tinycap.c b/tinycap.c index 2f982d0..3eb5c60 100644 --- a/tinycap.c +++ b/tinycap.c @@ -157,6 +157,9 @@ unsigned int capture_sample(FILE *file, unsigned int device, config.format = PCM_FORMAT_S32_LE; else if (bits == 16) config.format = PCM_FORMAT_S16_LE; + config.start_threshold = 0; + config.stop_threshold = 0; + config.silence_threshold = 0; pcm = pcm_open(0, device, PCM_IN, &config); if (!pcm || !pcm_is_ready(pcm)) { -- cgit v1.2.3