Constant WAVE_CHUNK_LIMIT

pub const WAVE_CHUNK_LIMIT: &'static str;
Available on crate feature dep_sdl3 only.
Expand description

A variable controlling the maximum number of chunks in a WAVE file.

This sets an upper bound on the number of chunks in a WAVE file to avoid wasting time on malformed or corrupt WAVE files. This defaults to “10000”.

This hint should be set before calling [SDL_LoadWAV()] or [SDL_LoadWAV_IO()]

§Availability

This hint is available since SDL 3.2.0.