al_set_audio_stream_fragment

bool al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM *stream, void *val)
Introduced in 5.0.0

This function needs to be called for every successful call of al_get_audio_stream_fragment to indicate that the buffer is filled with new data.

Examples: ex_saw, ex_synth


Most helpful discussions: