AL_GET_AUDIO_STREAM_LENGTH_SECS(3)
π NAME π
okay so bestie, this page is from the Library Functions Manual and it's all about al_get_audio_stream_length_secs β the Allegro 5 API function that tells you how long an audio stream is, in seconds. slay.
β¨ SYNOPSIS β¨
#include <allegro5/allegro_audio.h>
double al_get_audio_stream_length_secs(ALLEGRO_AUDIO_STREAM *stream)
π DESCRIPTION π
So the function returns the length of the stream in seconds, but only if known. If it's not known? It returns zero. No cap, that's the whole vibe.
lowkey important: "if known" is doing real work here β unknown length = 0, not a magical guess π
Right now, currently, you can only call this on streams created with:
Those four are the main characters for this function. Don't try to sneak in some other stream and expect it to work, bestie π«Ά
π¦ SEE ALSO π¦
al_get_audio_stream_position_secs(3)β the obvious bestie for position vibes β¨
Cute sign-off time: source/version is the Allegro reference manual, and the date isn't listed on this page, so no fake timestamp from me π the manual title is already folded up top where it belongs ππ
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms