diff options
author | Yoshihisa Uchida <uchida@rockbox.org> | 2010-03-06 05:51:24 +0000 |
---|---|---|
committer | Yoshihisa Uchida <uchida@rockbox.org> | 2010-03-06 05:51:24 +0000 |
commit | ff733b5f896b76b0678b7cdc178ee805f377b7b4 (patch) | |
tree | af976e5d9a834e19ab64827e89b96f2a2f17bcd7 /apps/codecs/libpcm/ms_adpcm.c | |
parent | f1b209c057b8470cb32c221438f7c123a4bf1392 (diff) |
libpcm: decoded pcm depth corrects.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25040 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libpcm/ms_adpcm.c')
-rw-r--r-- | apps/codecs/libpcm/ms_adpcm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/codecs/libpcm/ms_adpcm.c b/apps/codecs/libpcm/ms_adpcm.c index 7f1cb1c811..79365807ef 100644 --- a/apps/codecs/libpcm/ms_adpcm.c +++ b/apps/codecs/libpcm/ms_adpcm.c @@ -19,7 +19,6 @@ * ****************************************************************************/ #include "codeclib.h" -#include "pcm_common.h" #include "support_formats.h" /* @@ -138,8 +137,8 @@ static int decode(const uint8_t *inbuf, size_t inbufsize, while (size-- > 0) { - *outbuf++ = create_pcmdata(0, *inbuf >> 4 ) << 13; - *outbuf++ = create_pcmdata(ch, *inbuf & 0xf) << 13; + *outbuf++ = create_pcmdata(0, *inbuf >> 4 ) << (PCM_OUTPUT_DEPTH - 16); + *outbuf++ = create_pcmdata(ch, *inbuf & 0xf) << (PCM_OUTPUT_DEPTH - 16); nsamples += 2; inbuf++; |