al_get_audio_stream_length_secs
double al_get_audio_stream_length_secs(ALLEGRO_AUDIO_STREAM *stream)
Introduced in 5.0.0
Return the length of the stream in seconds, if known. Otherwise returns zero.
Currently this can only be called on streams created with al_load_audio_stream, al_load_audio_stream_f and the format-specific functions underlying those functions.
Examples: ex_stream_seek