al_get_availa...ream_fragments(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

al_get_available_audio_stream_fragments β€” the Allegro 5 API function that tells you how many fragments in your audio stream are still up for grabs πŸŽ€


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_audio.h>

unsigned int al_get_available_audio_stream_fragments(
   const ALLEGRO_AUDIO_STREAM *stream)

πŸ’– DESCRIPTION πŸ’–

okay bestie so here's the vibe: this function hands you back the number of available fragments in the stream πŸ’…

and what counts as "available", you ask? it's the fragments that are not currently filled with data for playback. like, they're empty, they're free, they're waiting for you to slide some audio data in there. main character fragments fr fr ✨

it returns an unsigned int, so it's just a plain old count. no cap, that's the whole thing. 🫢


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie!! this lil slice of knowledge lives in the Allegro reference manual, and yeah, the manpage name is the very chaotic-looking al_get_availa...ream_fragments(3alleg5) because apparently truncation ate the middle of it 😭 iconic honestly. go forth and check your fragments πŸ’œπŸ¦‹

πŸ“¦ where this page comes from