-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.WaveFormat
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Convert wave data to desired format
| Parameter | Default Value | Note |
|---|---|---|
| wave | ||
| sampleRate | 44100 | |
| sampleSize | 16 | |
| channels | 2 |
None.
raylib.InitAudioDevice
wave = raylib.LoadWave("resources/beep.wav")
raylib.WaveFormat wave, 44100, 16, 2 // convert to 44100 Hz, 16-bit, stereo
sound = raylib.LoadSoundFromWave(wave)
raylib.PlaySound sound
raylib.UnloadSound sound
raylib.UnloadWave wave
raylib.CloseAudioDevice