set_hardware_volume(3)
set_hardware_volume(3) β Allegro manual π
okay bestie, this is the Allegro page for set_hardware_volume, and it is lowkey about the biggest volume vibe there is: the hardware sound output volume. π
β¨ NAME β¨
set_hardware_volume β alters the hardware sound output volume. Part of the Allegro game programming library. π¦
πΈ SYNOPSIS πΈ
#include <allegro.h>
void set_hardware_volume(int digi_volume, int midi_volume);
π DESCRIPTION π
So, this routine alters the hardware 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 β the ceiling is real, no cap. π
digi_volumeβ the digital samples volume: an integer from0to255, or a negative value to leave this setting unchanged. Values bigger than255are reduced to255.midi_volumeβ the MIDI playback volume: an integer from0to255, or a negative value to leave this setting unchanged. Values bigger than255are reduced to255.
This routine will use the hardware mixer to control the volume if it exists. And bestie, when it does, the volume of all the applications on your machine will be affected β yes, all of them, it's giving main character energy for real. π
If the hardware mixer does not exist, this routine does nothing. No mixer, no volume change, no drama. π«Ά
π₯ SEE ALSO π₯
Source: Allegro, version 4.4.3. The footer didn't include a date, so we're just gonna call it timeless, bestie. π
π¦ 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