Allegro 5 api
#include <allegro5/allegro_audio.h> bool al_get_audio_stream_playing(const ALLEGRO_AUDIO_STREAM *stream)
Return true if the stream is playing.
al_set_audio_stream_playing(3alleg5).