From 0db3308cb56a1589b427f3b712d66480bc4d788f Mon Sep 17 00:00:00 2001 From: Jeffrey Goode Date: Wed, 11 Nov 2009 07:02:18 +0000 Subject: pcmbuf: bug fix with pcmbuf flush, code cleanup, added comments git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23608 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/test_codec.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'apps/plugins/test_codec.c') diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c index 6f75863..156852a 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) } /* Null output */ -static bool pcmbuf_insert_null(const void *ch1, const void *ch2, int count) +static void pcmbuf_insert_null(const void *ch1, const void *ch2, int count) { if (use_dsp) process_dsp(ch1, ch2, count); /* Prevent idle poweroff */ rb->reset_poweroff_timer(); - - return true; } static inline int32_t clip_sample(int32_t sample) @@ -259,7 +257,7 @@ static inline int32_t clip_sample(int32_t sample) /* WAV output */ -static bool pcmbuf_insert_wav(const void *ch1, const void *ch2, int count) +static void pcmbuf_insert_wav(const void *ch1, const void *ch2, int count) { const int16_t* data1_16; const int16_t* data2_16; @@ -360,8 +358,6 @@ static bool pcmbuf_insert_wav(const void *ch1, const void *ch2, int count) wavinfo.totalsamples += count; rb->write(wavinfo.fd, wavbuffer, p - wavbuffer); } /* else */ - - return true; } /* Set song position in WPS (value in ms). */ -- cgit v1.1