mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-18 01:22:38 -05:00
FS#12443: Implement downmixing to stereo for multichannel flac.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31253 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6b45019077
commit
5b8ed62922
3 changed files with 94 additions and 9 deletions
|
|
@ -27,7 +27,7 @@ CODEC_HEADER
|
|||
/* The output buffers containing the decoded samples (channels 0 and 1) */
|
||||
static int32_t decoded0[MAX_BLOCKSIZE] IBSS_ATTR_FLAC_DECODED0;
|
||||
static int32_t decoded1[MAX_BLOCKSIZE] IBSS_ATTR;
|
||||
static int32_t dummydec[MAX_BLOCKSIZE];
|
||||
static int32_t dummydec[4][MAX_BLOCKSIZE];
|
||||
|
||||
#define MAX_SUPPORTED_SEEKTABLE_SIZE 5000
|
||||
|
||||
|
|
@ -98,8 +98,7 @@ static bool flac_init(FLACContext* fc, int first_frame_offset)
|
|||
fc->decoded[1] = decoded1;
|
||||
for (ch=2; ch<MAX_CHANNELS; ++ch)
|
||||
{
|
||||
/* Only channel 0 and 1 are used, the other are decoded to scratch */
|
||||
fc->decoded[ch] = dummydec;
|
||||
fc->decoded[ch] = dummydec[ch-2];
|
||||
}
|
||||
|
||||
/* Skip any foreign tags at start of file */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue