AL_GET_AUDIO_STREAM_FRAGMENTS(3)
From the Library Functions Manual (Allegro 5 API corner of the universe), this is al_get_audio_stream_fragments(3) and it's giving tiny-but-essential main character energy π
β¨ NAME β¨
al_get_audio_stream_fragments β Allegro 5 API. No cap, that's the whole name, and it's lowkey iconic in its simplicity π«Ά
πΈ SYNOPSIS πΈ
#include <allegro5/allegro_audio.h>
unsigned int al_get_audio_stream_fragments(const ALLEGRO_AUDIO_STREAM *stream)
Okay so it hands you back an unsigned int, and it takes one const ALLEGRO_AUDIO_STREAM *stream β yes bestie, that pointer is const and we respect it π
π DESCRIPTION π
This function returns the number of fragments this stream uses, periodt. That's it, that's the tea ββ¨
And the value it gives you? It's literally the same value as passed to al_create_audio_stream(3) when a new stream is created. So if you set up the stream with a certain number of fragments, this is the function that reminds you what that number was β main character memory-keeper energy π.
π¦ SEE ALSO π¦
al_get_available_audio_stream_fragments(3)β the related bestie you should also check out π
Sign-off, bestie: source/version is Allegro reference manual, and the date in this footer copy is literally absent β not me inventing a date, no cap ππ. Stay iconic, stream-fragment queen πβ¨
π¦ 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