al_get_sample_instance_time(3alleg5)

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

✨ al_get_sample_instance_time(3alleg5) ✨

okay bestie, welcome to the Allegro 5 API manual, page al_get_sample_instance_time πŸ’– this one's short and sweet, like a little snack, and it's gonna take you zero seconds to understand (unlike your samples, which take several seconds, and that's literally the whole point of this function).


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_audio.h>

float al_get_sample_instance_time(const ALLEGRO_SAMPLE_INSTANCE *spl)

πŸ’… DESCRIPTION πŸ’…

so you hand it a sample instance and it tells you how long that sample instance is, in seconds. that's it. that's the function. she's simple, she's iconic, she ate πŸŽ€

one lil' detail tho, and it's important so don't skip it: the length it gives you assumes a playback speed of 1.0. like, normal speed. default vibes. if you've cranked the speed up or down, this number is the "at 1.0" number, periodt.


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie!! no cap, it's giving short king. this was pulled from the Allegro reference manual, so go off and make something cute with your audio πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from