Allegro 5 api
#include <allegro5/allegro_audio.h> ALLEGRO_EVENT_SOURCE *al_get_audio_stream_event_source( ALLEGRO_AUDIO_STREAM *stream)
Retrieve the associated event source.
See al_get_audio_stream_fragment(3alleg5) for a description of the ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT event that audio streams emit.