Audio addon
These functions are declared in the following header file. Link with allegro_audio.
#include <allegro5/allegro_audio.h>
Audio types
Misc audio functions
al_get_audio_depth_size
Return the size of a sample, in bytes, for the given format. The format is one of the values listed under ALLEGRO_AUDIO_DEPTH.
al_get_channel_count
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
- al_create_sample_instance
- al_destroy_sample_instance
- al_play_sample_instance
- al_stop_sample_instance
- al_get_sample_instance_channels
- al_get_sample_instance_depth
- al_get_sample_instance_frequency
- al_get_sample_instance_length
- al_set_sample_instance_length
- al_get_sample_instance_position
- al_set_sample_instance_position
- al_get_sample_instance_speed
- al_set_sample_instance_speed
- al_get_sample_instance_gain
- al_set_sample_instance_gain
- al_get_sample_instance_pan
- al_set_sample_instance_pan
- al_get_sample_instance_time
- al_get_sample_instance_playmode
- al_set_sample_instance_playmode
- al_get_sample_instance_playing
- al_set_sample_instance_playing
- al_get_sample_instance_attached
- al_detach_sample_instance
- al_get_sample
- al_set_sample
Mixer functions
- al_create_mixer
- al_destroy_mixer
- al_get_default_mixer
- al_set_default_mixer
- al_restore_default_mixer
- al_attach_mixer_to_mixer
- al_attach_sample_instance_to_mixer
- al_attach_audio_stream_to_mixer
- al_get_mixer_frequency
- al_set_mixer_frequency
- al_get_mixer_channels
- al_get_mixer_depth
- al_get_mixer_quality
- al_set_mixer_quality
- al_get_mixer_playing
- al_set_mixer_playing
- al_get_mixer_attached
- al_detach_mixer
- al_set_mixer_postprocess_callback
Stream functions
- al_create_audio_stream
- al_destroy_audio_stream
- al_get_audio_stream_event_source
- al_drain_audio_stream
- al_rewind_audio_stream
- al_get_audio_stream_frequency
- al_get_audio_stream_channels
- al_get_audio_stream_depth
- al_get_audio_stream_length
- al_get_audio_stream_speed
- al_set_audio_stream_speed
- al_get_audio_stream_gain
- al_set_audio_stream_gain
- al_get_audio_stream_pan
- al_set_audio_stream_pan
- al_get_audio_stream_playing
- al_set_audio_stream_playing
- al_get_audio_stream_playmode
- al_set_audio_stream_playmode
- al_get_audio_stream_attached
- al_detach_audio_stream
- al_get_audio_stream_fragment
- al_set_audio_stream_fragment
- al_get_audio_stream_fragments
- al_get_available_audio_stream_fragments
- al_seek_audio_stream_secs
- al_get_audio_stream_position_secs
- al_get_audio_stream_length_secs
- al_set_audio_stream_loop_secs