From 0c050a3dff2acd66e263bd2d199c230907b406ae Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 30 Nov 2025 22:18:11 +0100 Subject: [PATCH] pitch is a float --- src/sdl/sdl_sound.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sdl/sdl_sound.c b/src/sdl/sdl_sound.c index 2c447f8c7..c8f858d34 100644 --- a/src/sdl/sdl_sound.c +++ b/src/sdl/sdl_sound.c @@ -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); }