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/qt_ima_adpcm.c | |
parent | f1b209c057b8470cb32c221438f7c123a4bf1392 (diff) | |
download | rockbox-ff733b5f896b76b0678b7cdc178ee805f377b7b4.tar.gz rockbox-ff733b5f896b76b0678b7cdc178ee805f377b7b4.zip |
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/qt_ima_adpcm.c')
-rw-r--r-- | apps/codecs/libpcm/qt_ima_adpcm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/codecs/libpcm/qt_ima_adpcm.c b/apps/codecs/libpcm/qt_ima_adpcm.c index e99a91796d..003de22dd8 100644 --- a/apps/codecs/libpcm/qt_ima_adpcm.c +++ b/apps/codecs/libpcm/qt_ima_adpcm.c | |||
@@ -19,7 +19,6 @@ | |||
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | #include "codeclib.h" | 21 | #include "codeclib.h" |
22 | #include "pcm_common.h" | ||
23 | #include "ima_adpcm_common.h" | 22 | #include "ima_adpcm_common.h" |
24 | #include "support_formats.h" | 23 | #include "support_formats.h" |
25 | 24 | ||
@@ -107,9 +106,9 @@ static int decode(const uint8_t *inbuf, size_t inbufsize, | |||
107 | pcmbuf = outbuf + ch; | 106 | pcmbuf = outbuf + ch; |
108 | for (block_size = 32; block_size > 0 && inbufsize > 0; block_size--, inbufsize--) | 107 | for (block_size = 32; block_size > 0 && inbufsize > 0; block_size--, inbufsize--) |
109 | { | 108 | { |
110 | *pcmbuf = create_pcmdata_size4(ch, *inbuf ) << 13; | 109 | *pcmbuf = create_pcmdata_size4(ch, *inbuf ) << IMA_ADPCM_INC_DEPTH; |
111 | pcmbuf += fmt->channels; | 110 | pcmbuf += fmt->channels; |
112 | *pcmbuf = create_pcmdata_size4(ch, *inbuf >> 4) << 13; | 111 | *pcmbuf = create_pcmdata_size4(ch, *inbuf >> 4) << IMA_ADPCM_INC_DEPTH; |
113 | pcmbuf += fmt->channels; | 112 | pcmbuf += fmt->channels; |
114 | nsamples += 2; | 113 | nsamples += 2; |
115 | inbuf++; | 114 | inbuf++; |