al_get_audio_stream_gain(3alleg5)
β¨ al_get_audio_stream_gain β¨
okay bestie, welcome to the Allegro 5 API β yes, that's the 3alleg5 manual, we're fancy here π
β and today's main character is a tiny little function that just wants to tell you how loud your audio stream is being. no drama, no side effects, just vibes and a float. π
πΈ NAME πΈ
al_get_audio_stream_gain β Allegro 5 API π
π¦ SYNOPSIS π¦
#include <allegro5/allegro_audio.h>
float al_get_audio_stream_gain(const ALLEGRO_AUDIO_STREAM *stream)
like look at her. one include, one signature, zero chaos. she ate and left no crumbs. π
π DESCRIPTION π
Return the playback gain of the stream. π§
that's it, that's the whole thing, bestie. you hand her an ALLEGRO_AUDIO_STREAM (as a const pointer, because she is not touching it, she's just looking π) and she hands you back a float telling you the current playback gain. reading only. no cap. β¨
π₯ SEE ALSO π₯
al_set_audio_stream_gain(3alleg5).β the one who actually sets the gain, in case you were like "cool but how do I change it" π
and that's the whole page, gorgeous. shoutout to the Allegro reference manual for holding it down, and to the 3alleg5 manual section for being its home. π«Ά now go forth and adjust those gains responsibly. mwah. πβ¨
π¦ 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