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. --- tinyplay.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tinyplay.c') diff --git a/tinyplay.c b/tinyplay.c index 2523e54..3eed64a 100644 --- a/tinyplay.c +++ b/tinyplay.c @@ -110,6 +110,9 @@ void play_sample(FILE *file, unsigned int channels, unsigned int rate, 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, 0, PCM_OUT, &config); if (!pcm || !pcm_is_ready(pcm)) { -- cgit v1.2.3