diff options
Diffstat (limited to 'apps/plugins/test_codec.c')
-rw-r--r-- | apps/plugins/test_codec.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c index 6f758639d1..156852a7b0 100644 --- a/apps/plugins/test_codec.c +++ b/apps/plugins/test_codec.c | |||
@@ -239,14 +239,12 @@ static int process_dsp(const void *ch1, const void *ch2, int count) | |||
239 | } | 239 | } |
240 | 240 | ||
241 | /* Null output */ | 241 | /* Null output */ |
242 | static bool pcmbuf_insert_null(const void *ch1, const void *ch2, int count) | 242 | static void pcmbuf_insert_null(const void *ch1, const void *ch2, int count) |
243 | { | 243 | { |
244 | if (use_dsp) process_dsp(ch1, ch2, count); | 244 | if (use_dsp) process_dsp(ch1, ch2, count); |
245 | 245 | ||
246 | /* Prevent idle poweroff */ | 246 | /* Prevent idle poweroff */ |
247 | rb->reset_poweroff_timer(); | 247 | rb->reset_poweroff_timer(); |
248 | |||
249 | return true; | ||
250 | } | 248 | } |
251 | 249 | ||
252 | static inline int32_t clip_sample(int32_t sample) | 250 | static inline int32_t clip_sample(int32_t sample) |
@@ -259,7 +257,7 @@ static inline int32_t clip_sample(int32_t sample) | |||
259 | 257 | ||
260 | 258 | ||
261 | /* WAV output */ | 259 | /* WAV output */ |
262 | static bool pcmbuf_insert_wav(const void *ch1, const void *ch2, int count) | 260 | static void pcmbuf_insert_wav(const void *ch1, const void *ch2, int count) |
263 | { | 261 | { |
264 | const int16_t* data1_16; | 262 | const int16_t* data1_16; |
265 | const int16_t* data2_16; | 263 | const int16_t* data2_16; |
@@ -360,8 +358,6 @@ static bool pcmbuf_insert_wav(const void *ch1, const void *ch2, int count) | |||
360 | wavinfo.totalsamples += count; | 358 | wavinfo.totalsamples += count; |
361 | rb->write(wavinfo.fd, wavbuffer, p - wavbuffer); | 359 | rb->write(wavinfo.fd, wavbuffer, p - wavbuffer); |
362 | } /* else */ | 360 | } /* else */ |
363 | |||
364 | return true; | ||
365 | } | 361 | } |
366 | 362 | ||
367 | /* Set song position in WPS (value in ms). */ | 363 | /* Set song position in WPS (value in ms). */ |