summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/metronome.c12
-rw-r--r--apps/plugins/rockboy/rbsound.c4
2 files changed, 3 insertions, 13 deletions
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)
736 } 736 }
737} 737}
738 738
739void callback_pcm(unsigned char** start, long* size)
740{
741 if(sound_active) {
742 *start = (unsigned char *)sndbuf;
743 *size = sizeof(sndbuf);
744 sound_active = false;
745 }
746}
747
748void play_tock(void) { 739void play_tock(void) {
749 sound_active = true; 740 rb->pcm_play_data(NULL,(unsigned char *)sndbuf,sizeof(sndbuf));
750 rb->pcm_play_data(callback_pcm);
751 tock++; 741 tock++;
752} 742}
753 743
diff --git a/apps/plugins/rockboy/rbsound.c b/apps/plugins/rockboy/rbsound.c
index 3eebea8bef..6371212ca8 100644
--- a/apps/plugins/rockboy/rbsound.c
+++ b/apps/plugins/rockboy/rbsound.c
@@ -35,7 +35,7 @@ static unsigned short *gmbuf;
35 35
36static bool newly_started; 36static bool newly_started;
37 37
38void get_more(unsigned char** start, long* size) 38void get_more(unsigned char** start, size_t* size)
39{ 39{
40#ifdef ONEBUF 40#ifdef ONEBUF
41 doneplay=1; 41 doneplay=1;
@@ -108,7 +108,7 @@ int pcm_submit(void)
108 108
109 if(newly_started) 109 if(newly_started)
110 { 110 {
111 rb->pcm_play_data(&get_more); 111 rb->pcm_play_data(&get_more,NULL,0);
112 newly_started = false; 112 newly_started = false;
113 } 113 }
114 114