al_get_sample_length(3alleg5)

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

✨ al_get_sample_length ✨

okay bestie, welcome to the Allegro 5 API β€” this one lives in al_get_sample_length(3alleg5) and it's genuinely so simple it's giving effortless πŸ’…


🌸 NAME 🌸

al_get_sample_length β€” Allegro 5 API πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro5/allegro_audio.h>

unsigned int al_get_sample_length(const ALLEGRO_SAMPLE *spl)

πŸ’– DESCRIPTION πŸ’–

so basically? you hand it a sample, and it hands you back the length of the sample in sample values. that's it. that's the whole function. no cap, it's a one-job icon πŸ‘‘

like… it's not seconds, it's not bytes, it's not vibes β€” it's sample values. periodt. don't come for it asking for anything else because it will simply not deliver, and honestly? respect. 🫢


🌈 SEE ALSO 🌈


lowkey reminder: it returns unsigned int, so don't go expecting negative sample lengths, that's just not the vibe πŸ’€

and that's the tea, bestie πŸ“ β€” this came straight outta the Allegro reference manual, al_get_sample_length(3alleg5), mwah, no notes, go read your audio samples πŸ’œβœ¨

πŸ“¦ where this page comes from