al_get_audio_depth_size(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ al_get_audio_depth_size β€” Allegro 5 API ✨

okay bestie, this one's from the Allegro 5 manual, and it's literally the shortest little glow-up of a function. let's go πŸ’–


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_audio.h>

size_t al_get_audio_depth_size(ALLEGRO_AUDIO_DEPTH depth)

πŸŽ€ DESCRIPTION πŸŽ€

so you hand it a format, and it hands you back the size of a sample, in bytes, for that format. that's it. that's the whole vibe. πŸ’…

and like, which format? it's one of the values listed under ALLEGRO_AUDIO_DEPTH(3alleg5) β€” go peek at that page if you're like "wait which depths even exist" πŸ¦‹

no cap, it's giving "tiny function, huge convenience". you're welcome. 🫢


🌈 cute little sign-off 🌈

this was brought to you by the Allegro reference manual, page al_get_audio_depth_size(3alleg5). mwah, take care of her πŸ’œπŸ§š

πŸ“¦ where this page comes from