Allegro 5 api
#include <allegro5/allegro_audio.h> bool al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM *stream, void *val)
This function needs to be called for every successful call of al_get_audio_stream_fragment(3alleg5) to indicate that the buffer is filled with new data.
al_get_audio_stream_fragment(3alleg5)