diff options
Diffstat (limited to 'apps')
-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(); |