summaryrefslogtreecommitdiff
path: root/apps/codecs/libpcm/pcm_common.h
diff options
context:
space:
mode:
authorYoshihisa Uchida <uchida@rockbox.org>2010-03-12 11:34:09 +0000
committerYoshihisa Uchida <uchida@rockbox.org>2010-03-12 11:34:09 +0000
commit2a9c42d1ed265f67d5dfb15b01c3ca1235127197 (patch)
tree70a1dd858a8aa85e9e12157cdce71ac5b196c3d9 /apps/codecs/libpcm/pcm_common.h
parentc7517f5662eda9af236e6206af6f8b02e77bf118 (diff)
downloadrockbox-2a9c42d1ed265f67d5dfb15b01c3ca1235127197.tar.gz
rockbox-2a9c42d1ed265f67d5dfb15b01c3ca1235127197.zip
libpcm: output depth corrects for the sign 1bit. linear pcm corrects bits shift.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25131 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libpcm/pcm_common.h')
-rw-r--r--apps/codecs/libpcm/pcm_common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libpcm/pcm_common.h b/apps/codecs/libpcm/pcm_common.h
index b303273667..412ffbce0b 100644
--- a/apps/codecs/libpcm/pcm_common.h
+++ b/apps/codecs/libpcm/pcm_common.h
@@ -25,8 +25,8 @@
25#include <stdbool.h> 25#include <stdbool.h>
26#include <inttypes.h> 26#include <inttypes.h>
27 27
28/* decoded pcm sample depth */ 28/* decoded pcm sample depth (sample 28bit + sign 1bit) */
29#define PCM_OUTPUT_DEPTH 28 29#define PCM_OUTPUT_DEPTH 29
30 30
31/* Macro that sign extends an unsigned byte */ 31/* Macro that sign extends an unsigned byte */
32#define SE(x) ((int32_t)((int8_t)(x))) 32#define SE(x) ((int32_t)((int8_t)(x)))