diff options
Diffstat (limited to 'apps/codecs/demac/libdemac')
-rw-r--r-- | apps/codecs/demac/libdemac/decoder.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/codecs/demac/libdemac/decoder.c b/apps/codecs/demac/libdemac/decoder.c index 30ab2bd359..79b5255ce0 100644 --- a/apps/codecs/demac/libdemac/decoder.c +++ b/apps/codecs/demac/libdemac/decoder.c | |||
@@ -134,7 +134,15 @@ int ICODE_ATTR_DEMAC decode_chunk(struct ape_ctx_t* ape_ctx, | |||
134 | /* Mono - do nothing unless it's 8-bit audio */ | 134 | /* Mono - do nothing unless it's 8-bit audio */ |
135 | if (ape_ctx->bps == 8) { | 135 | if (ape_ctx->bps == 8) { |
136 | /* TODO: Handle 8-bit streams */ | 136 | /* TODO: Handle 8-bit streams */ |
137 | } else { | ||
138 | /* Scale to output depth */ | ||
139 | while (count--) | ||
140 | { | ||
141 | left = *decoded0; | ||
142 | *(decoded0++) = SCALE(left); | ||
143 | } | ||
137 | } | 144 | } |
145 | |||
138 | } | 146 | } |
139 | } else { /* Stereo */ | 147 | } else { /* Stereo */ |
140 | if (ape_ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) { | 148 | if (ape_ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) { |