al_set_audio_stream_gain(3alleg5)

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

✨ 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 πŸ’…


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