mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-14 06:43:27 +00:00
force loading samples as 16-bit
This commit is contained in:
parent
0264ed1e22
commit
873cacda47
1 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ static void ResampleSfx (sfx_t *sfx, int inrate, int inwidth, byte *data)
|
|||
if (loadas8bit.value)
|
||||
sc->width = 1;
|
||||
else
|
||||
sc->width = inwidth;
|
||||
sc->width = 2;
|
||||
sc->stereo = 0;
|
||||
|
||||
// resample / decimate to the current source rate
|
||||
|
@ -195,7 +195,7 @@ sfxcache_t *S_LoadSound (sfx_t *s)
|
|||
stepscale = (float)info.rate / shm->speed;
|
||||
len = info.samples / stepscale;
|
||||
|
||||
len = len * info.width * info.channels;
|
||||
len = len * 2 * info.channels;
|
||||
|
||||
if (info.samples == 0 || len == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue