diff options
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/metronome.c | 12 | ||||
| -rw-r--r-- | apps/plugins/rockboy/rbsound.c | 4 |
2 files changed, 3 insertions, 13 deletions
diff --git a/apps/plugins/metronome.c b/apps/plugins/metronome.c index 2f897d7..ac4a990 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++; } diff --git a/apps/plugins/rockboy/rbsound.c b/apps/plugins/rockboy/rbsound.c index 3eebea8..6371212 100644 --- a/apps/plugins/rockboy/rbsound.c +++ b/apps/plugins/rockboy/rbsound.c @@ -35,7 +35,7 @@ static unsigned short *gmbuf; static bool newly_started; -void get_more(unsigned char** start, long* size) +void get_more(unsigned char** start, size_t* size) { #ifdef ONEBUF doneplay=1; @@ -108,7 +108,7 @@ int pcm_submit(void) if(newly_started) { - rb->pcm_play_data(&get_more); + rb->pcm_play_data(&get_more,NULL,0); newly_started = false; } |