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:
Ozkan Sezer 2013-07-25 11:03:25 +00:00
parent e27c101a08
commit 4a69497ed6

View file

@ -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++;
}
}
}