diff options
Diffstat (limited to 'apps/plugins/test_codec.c')
-rw-r--r-- | apps/plugins/test_codec.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c index f33d83fb15..7390318152 100644 --- a/apps/plugins/test_codec.c +++ b/apps/plugins/test_codec.c | |||
@@ -197,7 +197,7 @@ static void* get_codec_memory(size_t *size) | |||
197 | } | 197 | } |
198 | 198 | ||
199 | /* Null output */ | 199 | /* Null output */ |
200 | static bool pcmbuf_insert_null(const void *ch1, const void *ch2, int count) | 200 | static bool pcmbuf_insert_null(const void *ch1, const void *ch2, const int count) |
201 | { | 201 | { |
202 | /* Always successful - just discard data */ | 202 | /* Always successful - just discard data */ |
203 | (void)ch1; | 203 | (void)ch1; |
@@ -310,7 +310,7 @@ static bool pcmbuf_insert_wav(const void *ch1, const void *ch2, int count) | |||
310 | 310 | ||
311 | 311 | ||
312 | /* Set song position in WPS (value in ms). */ | 312 | /* Set song position in WPS (value in ms). */ |
313 | static void set_elapsed(unsigned int value) | 313 | static void set_elapsed(const unsigned int value) |
314 | { | 314 | { |
315 | elapsed = value; | 315 | elapsed = value; |
316 | } | 316 | } |
@@ -318,7 +318,7 @@ static void set_elapsed(unsigned int value) | |||
318 | 318 | ||
319 | /* Read next <size> amount bytes from file buffer to <ptr>. | 319 | /* Read next <size> amount bytes from file buffer to <ptr>. |
320 | Will return number of bytes read or 0 if end of file. */ | 320 | Will return number of bytes read or 0 if end of file. */ |
321 | static size_t read_filebuf(void *ptr, size_t size) | 321 | static size_t read_filebuf(void *ptr, const size_t size) |
322 | { | 322 | { |
323 | if (ci.curpos > (off_t)track.filesize) | 323 | if (ci.curpos > (off_t)track.filesize) |
324 | { | 324 | { |
@@ -336,7 +336,7 @@ static size_t read_filebuf(void *ptr, size_t size) | |||
336 | <realsize> amount of data. <reqsize> tells the buffer system | 336 | <realsize> amount of data. <reqsize> tells the buffer system |
337 | how much data it should try to allocate. If <realsize> is 0, | 337 | how much data it should try to allocate. If <realsize> is 0, |
338 | end of file is reached. */ | 338 | end of file is reached. */ |
339 | static void* request_buffer(size_t *realsize, size_t reqsize) | 339 | static void* request_buffer(size_t *realsize, const size_t reqsize) |
340 | { | 340 | { |
341 | *realsize = MIN(track.filesize-ci.curpos,reqsize); | 341 | *realsize = MIN(track.filesize-ci.curpos,reqsize); |
342 | 342 | ||
@@ -345,7 +345,7 @@ static void* request_buffer(size_t *realsize, size_t reqsize) | |||
345 | 345 | ||
346 | 346 | ||
347 | /* Advance file buffer position by <amount> amount of bytes. */ | 347 | /* Advance file buffer position by <amount> amount of bytes. */ |
348 | static void advance_buffer(size_t amount) | 348 | static void advance_buffer(const size_t amount) |
349 | { | 349 | { |
350 | ci.curpos += amount; | 350 | ci.curpos += amount; |
351 | } | 351 | } |
@@ -359,7 +359,7 @@ static void advance_buffer_loc(void *ptr) | |||
359 | 359 | ||
360 | 360 | ||
361 | /* Seek file buffer to position <newpos> beginning of file. */ | 361 | /* Seek file buffer to position <newpos> beginning of file. */ |
362 | static bool seek_buffer(size_t newpos) | 362 | static bool seek_buffer(const size_t newpos) |
363 | { | 363 | { |
364 | ci.curpos = newpos; | 364 | ci.curpos = newpos; |
365 | return true; | 365 | return true; |
@@ -374,7 +374,7 @@ static void seek_complete(void) | |||
374 | 374 | ||
375 | 375 | ||
376 | /* Calculate mp3 seek position from given time data in ms. */ | 376 | /* Calculate mp3 seek position from given time data in ms. */ |
377 | static off_t mp3_get_filepos(int newtime) | 377 | static off_t mp3_get_filepos(const int newtime) |
378 | { | 378 | { |
379 | /* We don't ask the codec to seek, so no need to implement this. */ | 379 | /* We don't ask the codec to seek, so no need to implement this. */ |
380 | (void)newtime; | 380 | (void)newtime; |
@@ -399,7 +399,7 @@ static void discard_codec(void) | |||
399 | } | 399 | } |
400 | 400 | ||
401 | 401 | ||
402 | static void set_offset(size_t value) | 402 | static void set_offset(const size_t value) |
403 | { | 403 | { |
404 | /* ??? */ | 404 | /* ??? */ |
405 | (void)value; | 405 | (void)value; |