From ca3fada21536d654b8ad4ebe49761fc3c9ce58ee Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Fri, 19 Sep 2014 22:18:07 +0200 Subject: [PATCH] Fix ALSA audio problem where threshold will not be reset because commit 7462290 decreased the value of pcm_pos --- src/laudio_alsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/laudio_alsa.c b/src/laudio_alsa.c index 51d07da8..c56d7b24 100644 --- a/src/laudio_alsa.c +++ b/src/laudio_alsa.c @@ -211,7 +211,7 @@ laudio_write(uint8_t *buf, uint64_t rtptime) return; } - else if ((pcm_status != LAUDIO_RUNNING) && (pcm_pos >= pcm_start_pos)) + else if ((pcm_status != LAUDIO_RUNNING) && (pcm_pos + pcm_buf_threshold >= pcm_start_pos)) { /* Kill threshold */ ret = laudio_set_start_threshold(0);