SDL2 Wiki
[ front page | index | search | recent changes | git repo | offline html ]

(See SDL3/SDL_LoadWAV for the SDL3 version.)

SDL_LoadWAV

Loads a WAV from a file.

Header File

Defined in SDL_audio.h

Syntax

#define SDL_LoadWAV(file, spec, audio_buf, audio_len) \
    SDL_LoadWAV_RW(SDL_RWFromFile(file, "rb"),1, spec,audio_buf,audio_len)

Remarks

This is designed as a convenience function for loading audio from trusted sources. Crashes or other issues with invalid content should not be considered security issues. If you want to load arbitrary audio you should use an audio loading library designed with security in mind.


CategoryAPI, CategoryAPIMacro, CategoryAudio


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.