From 3a37faee5719d14218cd003a43b70c177810c838 Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Mon, 13 Feb 2006 16:55:25 +0000 Subject: [PATCH] Don't boost from inside the DMA interrupt, ever git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8677 a1c6a512-1295-4272-9138-f99709370657 --- apps/pcmbuf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c index cfb297e4f5..a5b5fd0c4b 100644 --- a/apps/pcmbuf.c +++ b/apps/pcmbuf.c @@ -185,8 +185,6 @@ static void pcmbuf_callback(unsigned char** start, size_t* size) CALL_IF_EXISTS(pcmbuf_event_handler); } } - - if(pcmbuf_unplayed_bytes <= pcmbuf_watermark) pcmbuf_under_watermark(); } void pcmbuf_set_position_callback(void (*callback)(size_t size)) @@ -735,7 +733,9 @@ static bool prepare_insert(size_t length) logf("pcm starting"); pcmbuf_play_start(); } - } + } else if (pcmbuf_unplayed_bytes <= pcmbuf_watermark) + pcmbuf_under_watermark(); + return true; }