Function SDL_AUDIO_BITSIZE

pub const fn SDL_AUDIO_BITSIZE(x: SDL_AudioFormat) -> u32 
Available on crate feature dep_sdl3 only.
Expand description

Retrieve the size, in bits, from an SDL_AudioFormat.

For example, SDL_AUDIO_BITSIZE(SDL_AUDIO_S16) returns 16.

§Parameters

§Return value

Returns data size in bits.

§Thread safety

It is safe to call this macro from any thread.

§Availability

This macro is available since SDL 3.2.0.