DOKK / manpages / debian 12 / allegro5-doc / al_get_audio_depth_size.3alleg5.en
al_get_audio_depth_size(3alleg5) al_get_audio_depth_size(3alleg5)

al_get_audio_depth_size - Allegro 5 API

#include <allegro5/allegro_audio.h>
size_t al_get_audio_depth_size(ALLEGRO_AUDIO_DEPTH depth)
    

Return the size of a sample, in bytes, for the given format. The format is one of the values listed under ALLEGRO_AUDIO_DEPTH(3alleg5).

Allegro reference manual