Function SDL_AUDIO_BYTESIZE
pub const fn SDL_AUDIO_BYTESIZE(x: SDL_AudioFormat) -> u32 ⓘ
Available on crate feature
dep_sdl3
only.Expand description
Retrieve the size, in bytes, from an SDL_AudioFormat
.
For example, SDL_AUDIO_BYTESIZE(SDL_AUDIO_S16)
returns 2.
§Parameters
x
: anSDL_AudioFormat
value.
§Return value
Returns data size in bytes.
§Thread safety
It is safe to call this macro from any thread.
§Availability
This macro is available since SDL 3.2.0.