mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-23 20:52:54 +00:00
Don't byteswap when resampling audio...we byteswapped it previously in the
codecs.
This commit is contained in:
parent
6d4f5ffbf6
commit
b20b86bbbe
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ static void ResampleSfx( sfx_t *sfx, int inrate, int inwidth, byte *data, qboole
|
|||
srcsample = samplefrac >> 8;
|
||||
samplefrac += fracstep;
|
||||
if( inwidth == 2 ) {
|
||||
sample = LittleShort ( ((short *)data)[srcsample] );
|
||||
sample = ( ((short *)data)[srcsample] );
|
||||
} else {
|
||||
sample = (int)( (unsigned char)(data[srcsample]) - 128) << 8;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue