mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
snd_flac.c (flac_write_func): don't byteswap the 16 bit values.
they seem to be in native-endian format. thanks to Levent Yavas for testing on a big endian platform (ppc/OSX 10.4). git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@864 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
e27c101a08
commit
4a69497ed6
1 changed files with 3 additions and 2 deletions
|
@ -157,6 +157,7 @@ flac_write_func (const FLAC__StreamDecoder *decoder,
|
|||
ff->buffer = (byte *) Z_Malloc (ff->info->blocksize * ff->info->channels * ff->info->width);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (ff->info->channels == 1)
|
||||
{
|
||||
unsigned i;
|
||||
|
@ -197,8 +198,8 @@ flac_write_func (const FLAC__StreamDecoder *decoder,
|
|||
short *ro = (short *) ff->buffer + 1;
|
||||
for (i = 0; i < frame->header.blocksize; i++, lo++, ro++)
|
||||
{
|
||||
*lo++ = LittleShort (*li++);
|
||||
*ro++ = LittleShort (*ri++);
|
||||
*lo++ = *li++;
|
||||
*ro++ = *ri++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue