-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.WaveCrop
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
| Parameter | Default Value | Note |
|---|---|---|
| wave | ||
| initFrame | 0 | |
| finalFrame | 100 |
None.
raylib.InitAudioDevice
wave = raylib.LoadWave("resources/beep.wav")
raylib.WaveCrop wave, 0, 4000 // keep only first 4000 frames
sound = raylib.LoadSoundFromWave(wave)
raylib.PlaySound sound
raylib.UnloadSound sound
raylib.UnloadWave wave
raylib.CloseAudioDevice