set_volume(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

okay so bestie, welcome to set_volume(3) from the Allegro manual β€” the Allegro game programming library, no cap. This is the one that changes the global sound output volume. Let's get into it. πŸ’–

✨ NAME ✨

set_volume β€” alters the global sound output volume. Allegro game programming library.

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

void set_volume(int digi_volume, int midi_volume);

🌸 DESCRIPTION 🌸

Okay so here's the tea, bestie: set_volume alters the global sound output volume. You specify volumes for both digital samples and MIDI playback, as integers from 0 to 255, or you can pass a negative value to leave one of the settings unchanged. Values bigger than 255 will be reduced to 255. That's the cap, periodt.

And the big caveat: this routine will not alter the volume of the hardware mixer if it exists β€” i.e. only your application will be affected. So it's giving app-level volume, not whole-system takeover. Important bestie, don't forget. πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘


Signing off from the Allegro manual, version 4.4.3 β€” date on this page? Not listed, bestie, so we're leaving it as no date. Stay slay, protect your ears. πŸ«ΆπŸ’–

πŸ“¦ where this page comes from