set_volume - Man Page

Alters the global sound output volume. Allegro game programming library.


#include <allegro.h>

void set_volume(int digi_volume, int midi_volume);


Alters the global sound output volume. Specify volumes for both digital  samples and MIDI playback, as integers from 0 to 255, or pass a negative  value to leave one of the settings unchanged. Values bigger than 255 will be reduced to 255. This routine will not alter the volume of the hardware mixer if it exists (i.e. only your application will be affected).

See Also

install_sound(3), set_hardware_volume(3)

Referenced By

get_volume(3), install_sound(3), set_hardware_volume(3), set_volume_per_voice(3).

version 4.4.3 Allegro manual