al_get_sample...nce_frequency(3alleg5)

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

πŸ’– NAME πŸ’–

al_get_sample_instance_frequency β€” Allegro 5 API

okay so bestie, we're in the al_get_sample...nce_frequency page of the allegro5 manual, and this one is short and sweet, like a lil snack. it's giving "tiny function, big vibes". πŸŽ€


✨ SYNOPSIS ✨

#include <allegro5/allegro_audio.h>

unsigned int al_get_sample_instance_frequency(const ALLEGRO_SAMPLE_INSTANCE *spl)
no cap, copy that include exactly. allegro_audio.h is the one you want, not any other header, iykyk. 🎧

🌸 DESCRIPTION 🌸

so like, this function returns the frequency β€” in Hz, periodt β€” of the sample instance's sample data. that's it. that's the whole thing. πŸ¦‹

you pass in your const ALLEGRO_SAMPLE_INSTANCE *spl and it hands you back an unsigned int with the frequency. the way that it's literally just reading a number off your sample instance and giving it to you?? iconic. πŸ’…


and that's the tea, bestie 🫢 this lil page came straight outta the <b>Allegro reference manual</b>, from the <b>al_get_sample...nce_frequency</b> section of the <b>allegro5</b> manual set. mwah. go forth and query those frequencies. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from