summaryrefslogtreecommitdiff
path: root/apps/plugins/codeca52.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-06-11 14:03:15 +0000
committerDave Chapman <dave@dchapman.com>2005-06-11 14:03:15 +0000
commitc19563cba315ed9b90a3e5af78db316e1b8aace5 (patch)
tree22f6786737561485b5dcddc6fefe3874b8ca7bfa /apps/plugins/codeca52.c
parent1c5b392080fc263db370ba1d92a581390e13fa96 (diff)
downloadrockbox-c19563cba315ed9b90a3e5af78db316e1b8aace5.tar.gz
rockbox-c19563cba315ed9b90a3e5af78db316e1b8aace5.zip
Maybe (or maybe not) support downsampling multi-channel AC3 files. liba52 is too slow to test properly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6672 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/codeca52.c')
-rw-r--r--apps/plugins/codeca52.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/apps/plugins/codeca52.c b/apps/plugins/codeca52.c
index 5cb27defc8..050766a413 100644
--- a/apps/plugins/codeca52.c
+++ b/apps/plugins/codeca52.c
@@ -51,13 +51,10 @@ void output_audio(sample_t* samples,int flags) {
51 51
52 flags &= A52_CHANNEL_MASK | A52_LFE; 52 flags &= A52_CHANNEL_MASK | A52_LFE;
53 53
54 if (flags==A52_STEREO) { 54 /* We may need to check the output format in flags - I'm not sure... */
55 for (i = 0; i < 256; i++) { 55 for (i = 0; i < 256; i++) {
56 int16_samples[2*i] = convert (samples[i]); 56 int16_samples[2*i] = convert (samples[i]);
57 int16_samples[2*i+1] = convert (samples[i+256]); 57 int16_samples[2*i+1] = convert (samples[i+256]);
58 }
59 } else {
60 DEBUGF("ERROR: unsupported format: %d\n",flags);
61 } 58 }
62 59
63 rb->yield(); 60 rb->yield();