mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-09 21:52:05 +08:00
engine: soundlib: allowed resampling sounds with rate >44kHz
This commit is contained in:
committed by
Alibek Omarov
parent
e982b7911f
commit
86154f81aa
@@ -158,7 +158,7 @@ wavdata_t *S_LoadSound( sfx_t *sfx )
|
||||
Sound_Process( &sc, SOUND_11k, sc->width, sc->channels, SOUND_RESAMPLE );
|
||||
else if( sc->rate > SOUND_11k && sc->rate < SOUND_22k ) // some bad sounds
|
||||
Sound_Process( &sc, SOUND_22k, sc->width, sc->channels, SOUND_RESAMPLE );
|
||||
else if( sc->rate > SOUND_22k && sc->rate < SOUND_44k ) // some bad sounds
|
||||
else if( sc->rate > SOUND_22k && sc->rate != SOUND_44k ) // some bad sounds
|
||||
Sound_Process( &sc, SOUND_44k, sc->width, sc->channels, SOUND_RESAMPLE );
|
||||
|
||||
sfx->cache = sc;
|
||||
|
||||
Reference in New Issue
Block a user