AL_GET_AUDIO_STREAM_LENGTH_SECS(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’… 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 πŸ¦‹


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