summaryrefslogtreecommitdiff
path: root/apps/pcmbuf.c
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-02-13 16:55:25 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-02-13 16:55:25 +0000
commit3a37faee5719d14218cd003a43b70c177810c838 (patch)
treec1fde6a00022f470d19bcbba7a60dc2bfbb5423a /apps/pcmbuf.c
parent9581ad39ec15cf20350d01d2787dea0c7db6074d (diff)
downloadrockbox-3a37faee5719d14218cd003a43b70c177810c838.tar.gz
rockbox-3a37faee5719d14218cd003a43b70c177810c838.zip
Don't boost from inside the DMA interrupt, ever
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8677 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r--apps/pcmbuf.c6
1 files 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)
185 CALL_IF_EXISTS(pcmbuf_event_handler); 185 CALL_IF_EXISTS(pcmbuf_event_handler);
186 } 186 }
187 } 187 }
188
189 if(pcmbuf_unplayed_bytes <= pcmbuf_watermark) pcmbuf_under_watermark();
190} 188}
191 189
192void pcmbuf_set_position_callback(void (*callback)(size_t size)) 190void pcmbuf_set_position_callback(void (*callback)(size_t size))
@@ -735,7 +733,9 @@ static bool prepare_insert(size_t length)
735 logf("pcm starting"); 733 logf("pcm starting");
736 pcmbuf_play_start(); 734 pcmbuf_play_start();
737 } 735 }
738 } 736 } else if (pcmbuf_unplayed_bytes <= pcmbuf_watermark)
737 pcmbuf_under_watermark();
738
739 return true; 739 return true;
740} 740}
741 741