set_volume(3)
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 π
install_sound(3)β go peek at that one. πset_hardware_volume(3)β also relevant, bestie. β¨
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
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms