al_get_audio_stream_frequency(3alleg5)

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

πŸ’– NAME πŸ’–

al_get_audio_stream_frequency β€” it's giving Allegro 5 API, bestie πŸ’…


✨ SYNOPSIS ✨

#include <allegro5/allegro_audio.h>

unsigned int al_get_audio_stream_frequency(const ALLEGRO_AUDIO_STREAM *stream)

πŸŽ€ DESCRIPTION πŸŽ€

okay so literally all this one does is hand you back the stream's frequency, in Hz 🌸. that's it. that's the whole thing. no cap.

you pass in your stream, and boom β€” the frequency. it comes back as an unsigned int, so it's a nice lil whole number of hertz, no decimals, no drama πŸ’œ

heads up: the parameter is a const ALLEGRO_AUDIO_STREAM *, so this function is just peeking πŸ‘€ β€” it's not gonna change anything about your stream. read-only, respectful, an icon.

and that's the whole vibe check, fr fr πŸ¦‹ β€” this little page lived inside the Allegro reference manual, alongside its bestie al_get_audio_stream_frequency(3alleg5), and yeah that's the same name twice because that's just how manual footers do 🫢 slay, bye bestie πŸ’–βœ¨

πŸ“¦ where this page comes from