Skip to content

raylib.SetSoundPitch

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Set pitch for a sound (1.0 is base level)

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