ALLEGRO_SAMPLE
Allegro 5 API
- Provided by: allegro5-doc (Version: 2:5.0.11-2)
- Source: allegro5
- Report a bug
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 information pertaining to data length, frequency, channel configuration, etc. You can have an ALLEGRO_SAMPLE object playing multiple times simultaneously. The object holds a user-specified PCM data buffer, of the format the object is created with.
ALLEGRO_SAMPLE_INSTANCE(3alleg5)