pitch is a float

This commit is contained in:
Alug committed 2025-11-30 22:18:11 +01:00
1 parent ed926c444f
commit 0c050a3dff
1 file changed
+2 -2
+2 -2
View File
@@ -836,7 +836,7 @@ INT32 I_StartSound(sfxenum_t id, UINT8 vol, UINT8 sep, /*UINT8 pitch, UINT8 prio
sound->sample = S_sfx[id].data;
sound->pos = 0;
//sound->pitch = pitch / 128.0f;
sound->pitch = 1;
sound->pitch = 1.0f;
sound->volume[0] = (float)vol / 255;
sound->volume[1] = (float)vol / 255;
if (sep >= 128)
@@ -901,7 +901,7 @@ void I_UpdateSoundParams(INT32 handle, UINT8 vol, UINT8 sep/*, UINT8 pitch*/)
sounds[handle]->volume[1] *= (float)sep / 128.0f;
}
//sounds[handle]->pitch = pitch / 128.0f;
sounds[handle]->pitch = 1;
sounds[handle]->pitch = 1.0f;
SDL_UnlockAudioStream(audio_stream);
}