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

ALLEGRO_SAMPLE - Allegro 5 API

#include <allegro5/allegro_audio.h>
typedef struct ALLEGRO_SAMPLE ALLEGRO_SAMPLE;
    

An ALLEGRO_SAMPLE object stores the data necessary for playing pre-defined digital audio. It holds a user-specified PCM data buffer and information about its format (data length, depth, frequency, channel configuration). You can have the same ALLEGRO_SAMPLE playing multiple times simultaneously.

ALLEGRO_SAMPLE_INSTANCE(3alleg5)

Allegro reference manual