ALLEGRO_SAMPLE

typedef struct ALLEGRO_SAMPLE ALLEGRO_SAMPLE;
Introduced in 5.0.0

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.

See also: ALLEGRO_SAMPLE_INSTANCE

Examples: ex_acodec, ex_acodec_multi, ex_audio_props, ex_audio_simple, ex_haiku, ex_kcm_direct, ex_mixer_chain


Most helpful discussions:

Other recent discussions: