al_get_mixer_gain(3alleg5)

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

πŸ’– al_get_mixer_gain β€” the Allegro 5 API, bestie edition πŸ’–

okay so real talk, this page lives in the Allegro 5 reference manual (yes, the 3alleg5 manual, we're fancy like that ✨), and it's about ONE tiny function that tells you how loud your mixer is being. that's it. that's the whole vibe. let's get into it πŸŽ€


✨ NAME ✨

al_get_mixer_gain β€” Allegro 5 API 🫢

✨ SYNOPSIS ✨

#include <allegro5/allegro_audio.h>

float al_get_mixer_gain(const ALLEGRO_MIXER *mixer)

like look at that signature. float coming back at you, const ALLEGRO_MIXER *mixer going in. chef's kiss πŸ’…

✨ DESCRIPTION ✨

so what does it DO? it returns the mixer gain, which is the amplification factor. that's the number controlling how much your mixer is boosting (or not boosting) the audio. πŸ“ˆ

the default? <pink>1.0</pink> 🌸 that's your baseline, your no-change, your "everything as intended" setting. iconic.

ngl this is a getter, so it's not out here changing anything β€” it just reports back. no cap.

✨ SINCE ✨

  • 5.0.6 🌈
  • 5.1.0 🌈

so it's been around a minute, it's established, it's got seniority πŸ‘‘

✨ SEE ALSO ✨


and that's the whole page, bestie, you ate it πŸ“

sign-off time: this little writeup comes to you straight from the Allegro reference manual, page al_get_mixer_gain(3alleg5) β€” mwah, take care of her πŸ’œπŸ¦‹

πŸ“¦ where this page comes from