1set_hardware_volume(3)          Allegro manual          set_hardware_volume(3)
2
3
4

NAME

6       set_hardware_volume  - Alters the hardware sound output volume. Allegro
7       game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void set_hardware_volume(int digi_volume, int midi_volume);
14

DESCRIPTION

16       Alters the hardware sound output volume. Specify volumes for both digi‐
17       tal  samples  and  MIDI  playback, as integers from 0 to 255, or pass a
18       negative value to leave one of the settings  unchanged.  Values  bigger
19       than  255  will  be  reduced to 255. This routine will use the hardware
20       mixer to control the volume if it exists (i.e. the volume  of  all  the
21       applications on your machine will be affected), otherwise do nothing.
22
23

SEE ALSO

25       install_sound(3), set_volume(3)
26
27
28
29Allegro                          version 4.4.2          set_hardware_volume(3)
Impressum