diff options
Diffstat (limited to 'apps/plugins/beatbox')
| -rw-r--r-- | apps/plugins/beatbox/beatbox.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/beatbox/beatbox.c b/apps/plugins/beatbox/beatbox.c index 8ecbabd..8c7413c 100644 --- a/apps/plugins/beatbox/beatbox.c +++ b/apps/plugins/beatbox/beatbox.c @@ -509,7 +509,7 @@ void redrawScreen(unsigned char force) rb->lcd_update(); } -void get_more(unsigned char** start, size_t* size) +void get_more(const void** start, size_t* size) { #ifndef SYNC if(lastswap!=swap) @@ -523,10 +523,10 @@ void get_more(unsigned char** start, size_t* size) *size = BUF_SIZE*sizeof(short); #ifndef SYNC - *start = (unsigned char*)((swap ? gmbuf : gmbuf + BUF_SIZE)); + *start = swap ? gmbuf : gmbuf + BUF_SIZE; swap=!swap; #else - *start = (unsigned char*)(gmbuf); + *start = gmbuf; #endif } @@ -537,7 +537,7 @@ int beatboxmain() numberOfSamples=44100/10; synthbuf(); - rb->pcm_play_data(&get_more, NULL, 0); + rb->pcm_play_data(&get_more, NULL, NULL, 0); rb->lcd_set_background(0x000000); rb->lcd_clear_display(); |