You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Crop a wave to defined frames range NOTE: Security check in case of out-of-range
Parameters
Parameter
Default Value
Note
wave
initFrame
0
finalFrame
100
Return value
None.
Notes
Example
raylib.InitAudioDevicewave=raylib.LoadWave("resources/beep.wav")
raylib.WaveCropwave, 0, 4000// keep only first 4000 framessound=raylib.LoadSoundFromWave(wave)
raylib.PlaySoundsoundraylib.UnloadSoundsoundraylib.UnloadWavewaveraylib.CloseAudioDevice