Audio addon

These functions are declared in the following header file. Link with allegro_audio.

#include <allegro5/allegro_audio.h>

Audio types

Setting up audio

Misc audio functions


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


Return the number of channels for the given channel configuration, which is one of the values listed under ALLEGRO_CHANNEL_CONF.

Voice functions

Sample functions

Sample instance functions

Mixer functions

Stream functions

Audio file I/O