al_get_audio_stream_gain(3alleg5)

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

✨ 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 πŸ”₯


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