diff options
author | Dave Chapman <dave@dchapman.com> | 2005-06-11 14:03:15 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2005-06-11 14:03:15 +0000 |
commit | c19563cba315ed9b90a3e5af78db316e1b8aace5 (patch) | |
tree | 22f6786737561485b5dcddc6fefe3874b8ca7bfa | |
parent | 1c5b392080fc263db370ba1d92a581390e13fa96 (diff) | |
download | rockbox-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
-rw-r--r-- | apps/plugins/codeca52.c | 11 |
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(); |