From 413da2a3d93d989d4474edad437ff67888487cb9 Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Tue, 7 Feb 2006 20:38:55 +0000 Subject: Rework PCM buffer * Linked list instead of static array buffer pointers * Variable sized chunks * Improved mix handling * Reduction in duplicated code * Reduced IRAM usage w/o sacrificing performance * Converted to almost entirely unsigned math * Add pause function to reduce pcm_* exposure to playback. This WILL break playback on the iPod until linuxstb makes a followup commit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8612 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/metronome.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'apps/plugins/metronome.c') diff --git a/apps/plugins/metronome.c b/apps/plugins/metronome.c index 2f897d72a2..ac4a990f61 100644 --- a/apps/plugins/metronome.c +++ b/apps/plugins/metronome.c @@ -736,18 +736,8 @@ void prepare_tock(void) } } -void callback_pcm(unsigned char** start, long* size) -{ - if(sound_active) { - *start = (unsigned char *)sndbuf; - *size = sizeof(sndbuf); - sound_active = false; - } -} - void play_tock(void) { - sound_active = true; - rb->pcm_play_data(callback_pcm); + rb->pcm_play_data(NULL,(unsigned char *)sndbuf,sizeof(sndbuf)); tock++; } -- cgit v1.2.3