From c19563cba315ed9b90a3e5af78db316e1b8aace5 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Sat, 11 Jun 2005 14:03:15 +0000 Subject: 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 --- apps/plugins/codeca52.c | 11 ++++------- 1 file 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) { flags &= A52_CHANNEL_MASK | A52_LFE; - if (flags==A52_STEREO) { - for (i = 0; i < 256; i++) { - int16_samples[2*i] = convert (samples[i]); - int16_samples[2*i+1] = convert (samples[i+256]); - } - } else { - DEBUGF("ERROR: unsupported format: %d\n",flags); + /* We may need to check the output format in flags - I'm not sure... */ + for (i = 0; i < 256; i++) { + int16_samples[2*i] = convert (samples[i]); + int16_samples[2*i+1] = convert (samples[i+256]); } rb->yield(); -- cgit v1.2.3