diff options
Diffstat (limited to 'apps/plugins/test_sampr.c')
-rw-r--r-- | apps/plugins/test_sampr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/test_sampr.c b/apps/plugins/test_sampr.c index db8301bba6..fc2f695c70 100644 --- a/apps/plugins/test_sampr.c +++ b/apps/plugins/test_sampr.c | |||
@@ -90,13 +90,13 @@ static int16_t ICODE_ATTR fsin(uint32_t phase) | |||
90 | } | 90 | } |
91 | 91 | ||
92 | /* ISR handler to get next block of data */ | 92 | /* ISR handler to get next block of data */ |
93 | static void get_more(unsigned char **start, size_t *size) | 93 | static void get_more(const void **start, size_t *size) |
94 | { | 94 | { |
95 | /* Free previous buffer */ | 95 | /* Free previous buffer */ |
96 | output_head += output_step; | 96 | output_head += output_step; |
97 | output_step = 0; | 97 | output_step = 0; |
98 | 98 | ||
99 | *start = (unsigned char *)output_buf[output_head & OUTPUT_CHUNK_MASK]; | 99 | *start = output_buf[output_head & OUTPUT_CHUNK_MASK]; |
100 | *size = OUTPUT_CHUNK_SIZE; | 100 | *size = OUTPUT_CHUNK_SIZE; |
101 | 101 | ||
102 | /* Keep repeating previous if source runs low */ | 102 | /* Keep repeating previous if source runs low */ |
@@ -236,7 +236,7 @@ static void play_tone(bool volume_set) | |||
236 | IF_PRIO(, PRIORITY_PLAYBACK) | 236 | IF_PRIO(, PRIORITY_PLAYBACK) |
237 | IF_COP(, CPU)); | 237 | IF_COP(, CPU)); |
238 | 238 | ||
239 | rb->pcm_play_data(get_more, NULL, 0); | 239 | rb->pcm_play_data(get_more, NULL, NULL, 0); |
240 | 240 | ||
241 | #ifndef HAVE_VOLUME_IN_LIST | 241 | #ifndef HAVE_VOLUME_IN_LIST |
242 | if (volume_set) | 242 | if (volume_set) |