1
0
Fork 0
forked from len0rd/rockbox

Convert to use common internal sample format.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8681 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thom Johansen 2006-02-13 19:26:18 +00:00
parent 153f906d74
commit 37a165d796
3 changed files with 4 additions and 4 deletions

View file

@ -1,8 +1,8 @@
#ifndef __ALAC__DECOMP_H #ifndef __ALAC__DECOMP_H
#define __ALAC__DECOMP_H #define __ALAC__DECOMP_H
/* Always output samples shifted to 28 bits */ /* Always output samples shifted to 28 bits + sign*/
#define ALAC_OUTPUT_DEPTH 28 #define ALAC_OUTPUT_DEPTH 29
#define SCALE16 (ALAC_OUTPUT_DEPTH - 16) #define SCALE16 (ALAC_OUTPUT_DEPTH - 16)
#define ALAC_MAX_CHANNELS 2 #define ALAC_MAX_CHANNELS 2
#define ALAC_BLOCKSIZE 4096 /* Number of samples per channel per block */ #define ALAC_BLOCKSIZE 4096 /* Number of samples per channel per block */

View file

@ -7,7 +7,7 @@
#define MAX_BLOCKSIZE 4608 /* Maxsize in samples of one uncompressed frame */ #define MAX_BLOCKSIZE 4608 /* Maxsize in samples of one uncompressed frame */
#define MAX_FRAMESIZE 32768 /* Maxsize in bytes of one compressed frame */ #define MAX_FRAMESIZE 32768 /* Maxsize in bytes of one compressed frame */
#define FLAC_OUTPUT_DEPTH 28 /* Provide samples left-shifted to 28-bits */ #define FLAC_OUTPUT_DEPTH 29 /* Provide samples left-shifted to 28 bits+sign */
enum decorrelation_type { enum decorrelation_type {
INDEPENDENT, INDEPENDENT,

View file

@ -1,6 +1,6 @@
#include "bitstream.h" #include "bitstream.h"
#define SHN_OUTPUT_DEPTH 28 #define SHN_OUTPUT_DEPTH 29 /* 28 bits + sign */
#define MAX_CHANNELS 2 #define MAX_CHANNELS 2
#define MAX_PRED_ORDER 16 #define MAX_PRED_ORDER 16