al_set_mixer_frequency(3alleg5)

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

πŸ’– al_set_mixer_frequency β€” the Allegro 5 API glow-up πŸ’–

okay bestie, sit down, hydrate, because we're about to change a mixer's frequency and it's gonna be so satisfying. this is a page from the Allegro 5 API manual (section 3alleg5, if you're keeping track πŸŽ€).


✨ NAME ✨

al_set_mixer_frequency β€” Allegro 5 API πŸ¦‹


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_audio.h>

bool al_set_mixer_frequency(ALLEGRO_MIXER *mixer, unsigned int val)

like, look at that signature. it's giving "I know exactly what I'm doing" πŸ’…


πŸ‘‘ DESCRIPTION πŸ‘‘

So. You wanna set the mixer frequency β€” that's in Hz, bestie, hertz, the real ones β€” this is the function that does it. Set it and forget it. ✨

BUT. And this is the important part, so listen up πŸ™ˆ:

This will only work if the mixer is not attached to anything. If your mixer is already attached to something? It's not happening. It's giving "closed for business." No cap.

And what does it tell you when you're done?

  • returns true on success πŸŽ‰
  • returns false on failure πŸ’€

that's it, that's the whole vibe check. true = slay, false = not slay.


πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page, bestie!! go forth and set those frequencies responsibly, mwah πŸ’œ

this has been a page from the Allegro reference manual, brought to you by al_set_mixer_frequency(3alleg5) β€” see you in the next manpage, love u, bye!! πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from