al_get_sample...nce_frequency(3alleg5)
π 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
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms