al_set_mixer_gain(3alleg5)

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

πŸ’– al_set_mixer_gain β€” the Allegro 5 glow-up for your mixer πŸ’–

okay bestie, you found a page in the alleg5 manual β€” that's the Allegro 5 API, aka the toolkit that makes games and multimedia stuff go brrr. this one's about turning the volume knob on a mixer. let's get into it ✨


✨ NAME ✨

al_set_mixer_gain β€” set the mixer gain, i.e. the amplification factor. it's giving "make it louder, or actually make it quieter, your call" πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro5/allegro_audio.h>

bool al_set_mixer_gain(ALLEGRO_MIXER *mixer, float new_gain)

so you hand it a pointer to an ALLEGRO_MIXER and a float for the new gain, and it hands you back a bool. iconic exchange. 🫢


🌸 DESCRIPTION 🌸

Set the mixer gain (amplification factor).

Returns true on success, false on failure.

that's literally it, bestie β€” no cap. you're setting the amplification factor on the mixer, and you find out if it worked from that boolean. true means slay, false means 😭. don't sleep on checking it, fr fr.


πŸ¦‹ SINCE πŸ¦‹

5.0.6, 5.1.0

been here since 5.0.6 and 5.1.0. vintage but still main character energy πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

  • al_get_mixer_gain(3alleg5) β€” the read-only sibling, for when you wanna know what the gain currently is before you go changing things πŸ™ˆ

and that's the whole vibe check, bestie. this page came straight outta the Allegro reference manual, and its name in the manual is al_set_mixer_gain(3alleg5). go forth and amplify responsibly βœ¨πŸŽ€πŸ’–

πŸ“¦ where this page comes from