summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorJeffrey Goode <jeffg7@gmail.com>2009-09-25 15:46:38 +0000
committerJeffrey Goode <jeffg7@gmail.com>2009-09-25 15:46:38 +0000
commitcf19ba5599b1cba212705ddb22166acf25eca83c (patch)
tree99e66ab4a5526ec7c36521c19179d96e42d7c3ae /apps/plugins
parentb9a17dd0ceb1edc3e8d08522f82f9dfeabe53a53 (diff)
downloadrockbox-cf19ba5599b1cba212705ddb22166acf25eca83c.zip
rockbox-cf19ba5599b1cba212705ddb22166acf25eca83c.tar.gz
rockbox-cf19ba5599b1cba212705ddb22166acf25eca83c.tar.bz2
rockbox-cf19ba5599b1cba212705ddb22166acf25eca83c.tar.xz
Replace limiter with dynamic range compressor
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22832 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/test_codec.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c
index b776116..b41f053 100644
--- a/apps/plugins/test_codec.c
+++ b/apps/plugins/test_codec.c
@@ -810,34 +810,10 @@ show_menu:
rb->closedir(dir);
}
- /* process last samples */
- if (use_dsp)
- rb->dsp_flush_limiter_buffer(dspbuffer);
} else {
/* Just test the file */
res = test_track(parameter);
- /* process last samples */
- if (use_dsp)
- {
- int channels = (wavinfo.stereomode == STEREO_MONO) ? 1 : 2;
- int count = rb->dsp_flush_limiter_buffer(dspbuffer);
- if (channels == 1)
- {
- unsigned char *s = dspbuffer, *d = dspbuffer;
- int c = count;
- while (c-- > 0)
- {
- *d++ = *s++;
- *d++ = *s++;
- s++;
- s++;
- }
- }
- if (wavinfo.fd >= 0)
- rb->write(wavinfo.fd, dspbuffer, count * 2 * channels);
- }
-
/* Close WAV file (if there was one) */
if (wavinfo.fd >= 0) {
close_wav();