al_set_audio_stream_gain(3alleg5)
β¨ al_set_audio_stream_gain β Allegro 5 API β¨
okay bestie, welcome to the Allegro 5 reference manual π this one's a lil function from al_set_audio_stream_gain(3alleg5) and it's literally so simple you're gonna slay it.
πΈ NAME πΈ
al_set_audio_stream_gain β Allegro 5 API π
π SYNOPSIS π
#include <allegro5/allegro_audio.h>
bool al_set_audio_stream_gain(ALLEGRO_AUDIO_STREAM *stream, float val)
no cap, that's the whole signature. two args, one bool back. iconic.
π¦ DESCRIPTION π¦
so what it does is set the playback gain of the stream. that's it, that's the vibe β you hand it a stream and a value and it adjusts how loud that stream plays. main character energy for your mixer ποΈβ¨
it returns true on success and false on failure, fr fr.
π heads up: it will fail if the audio stream is attached directly to a voice. so if your stream is living that voice-attached life, this call is not the one. periodt.
π SEE ALSO π
al_get_audio_stream_gain(3alleg5)β the getter twin, go read it, iykyk π«Ά
and that's the whole page, bestie π this was al_set_audio_stream_gain(3alleg5) from the Allegro reference manual (Allegro 5, obviously π). go forth and set those gains, you absolute legend ππ
π¦ 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