diff options
Diffstat (limited to 'apps/codecs/libffmpegFLAC/decoder.h')
-rw-r--r-- | apps/codecs/libffmpegFLAC/decoder.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/libffmpegFLAC/decoder.h b/apps/codecs/libffmpegFLAC/decoder.h index 0b148df916..677a21ac98 100644 --- a/apps/codecs/libffmpegFLAC/decoder.h +++ b/apps/codecs/libffmpegFLAC/decoder.h | |||
@@ -3,9 +3,9 @@ | |||
3 | 3 | ||
4 | #include "bitstream.h" | 4 | #include "bitstream.h" |
5 | 5 | ||
6 | #define MAX_CHANNELS 2 /* Maximum supported channels */ | 6 | #define MAX_CHANNELS 6 /* Maximum supported channels, only left/right will be played back */ |
7 | #define MAX_BLOCKSIZE 4608 /* Maxsize in samples of one uncompressed frame */ | 7 | #define MAX_BLOCKSIZE 4608 /* Maxsize in samples of one uncompressed frame */ |
8 | #define MAX_FRAMESIZE 32768 /* Maxsize in bytes of one compressed frame */ | 8 | #define MAX_FRAMESIZE 65536 /* Maxsize in bytes of one compressed frame */ |
9 | 9 | ||
10 | #define FLAC_OUTPUT_DEPTH 29 /* Provide samples left-shifted to 28 bits+sign */ | 10 | #define FLAC_OUTPUT_DEPTH 29 /* Provide samples left-shifted to 28 bits+sign */ |
11 | 11 | ||
@@ -38,11 +38,11 @@ typedef struct FLACContext { | |||
38 | 38 | ||
39 | int sample_skip; | 39 | int sample_skip; |
40 | int framesize; | 40 | int framesize; |
41 | |||
42 | int32_t *decoded[MAX_CHANNELS]; | ||
41 | } FLACContext; | 43 | } FLACContext; |
42 | 44 | ||
43 | int flac_decode_frame(FLACContext *s, | 45 | int flac_decode_frame(FLACContext *s, |
44 | int32_t* decoded0, | ||
45 | int32_t* decoded1, | ||
46 | uint8_t *buf, int buf_size, | 46 | uint8_t *buf, int buf_size, |
47 | void (*yield)(void)) ICODE_ATTR_FLAC; | 47 | void (*yield)(void)) ICODE_ATTR_FLAC; |
48 | 48 | ||