summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/rbsound.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockboy/rbsound.c')
-rw-r--r--apps/plugins/rockboy/rbsound.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/rockboy/rbsound.c b/apps/plugins/rockboy/rbsound.c
index c0d0277915..628879b4b7 100644
--- a/apps/plugins/rockboy/rbsound.c
+++ b/apps/plugins/rockboy/rbsound.c
@@ -16,10 +16,10 @@ static unsigned short *buf=0, *hwbuf=0;
16 16
17static bool newly_started; 17static bool newly_started;
18 18
19static void get_more(unsigned char** start, size_t* size) 19static void get_more(const void** start, size_t* size)
20{ 20{
21 memcpy(hwbuf, &buf[pcm.len*doneplay], BUF_SIZE*sizeof(short)); 21 memcpy(hwbuf, &buf[pcm.len*doneplay], BUF_SIZE*sizeof(short));
22 *start = (unsigned char*)(hwbuf); 22 *start = hwbuf;
23 *size = BUF_SIZE*sizeof(short); 23 *size = BUF_SIZE*sizeof(short);
24 doneplay=1; 24 doneplay=1;
25} 25}
@@ -76,7 +76,7 @@ int rockboy_pcm_submit(void)
76 76
77 if(newly_started) 77 if(newly_started)
78 { 78 {
79 rb->pcm_play_data(&get_more,NULL,0); 79 rb->pcm_play_data(&get_more, NULL, NULL,0);
80 newly_started = false; 80 newly_started = false;
81 } 81 }
82 82