diff options
| author | Jeffrey Goode <jeffg7@gmail.com> | 2009-11-11 07:02:18 +0000 |
|---|---|---|
| committer | Jeffrey Goode <jeffg7@gmail.com> | 2009-11-11 07:02:18 +0000 |
| commit | 0db3308cb56a1589b427f3b712d66480bc4d788f (patch) | |
| tree | 85818b2e08662bc156ff5857834e3611f79e9911 /apps/plugins/test_codec.c | |
| parent | db4cab0e665143a3eaa56bdd911a25f534db6caf (diff) | |
| download | rockbox-0db3308cb56a1589b427f3b712d66480bc4d788f.zip rockbox-0db3308cb56a1589b427f3b712d66480bc4d788f.tar.gz rockbox-0db3308cb56a1589b427f3b712d66480bc4d788f.tar.bz2 rockbox-0db3308cb56a1589b427f3b712d66480bc4d788f.tar.xz | |
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
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 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). */ |