al_get_audio_stream_fragments

unsigned int al_get_audio_stream_fragments(const ALLEGRO_AUDIO_STREAM *stream)
Introduced in 5.0.0

Returns the number of fragments this stream uses. This is the same value as passed to al_create_audio_stream when a new stream is created.