Skip to content

raylib.SetSoundPitch

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Set pitch for a sound

Parameters

Parameter Default Value Note
sound
pitch 1.0

Return value

None.

Notes

Example

raylib.InitAudioDevice
sound = raylib.LoadSound("resources/beep.wav")
raylib.SetSoundPitch sound, 2.0  // double pitch
raylib.PlaySound sound
raylib.UnloadSound sound
raylib.CloseAudioDevice

Clone this wiki locally