Mail Archives: djgpp/1998/10/27/03:00:47
ripped from the Allegro documentation...
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. If possible
this routine will use a hardware mixer to control the volume,
otherwise it will tell the sample and MIDI players to simulate a
mixer in software.
> now sound is very small..
> i almost can't hear midi sound.
> i'd like to know control method for midi volume under allegro.
>
> allegro_init(); // install allegro
>
> install_sound(DIGI_NONE,MIDI_AUTODETECT,NULL);
>
set_volume(-1,255);
> midi=load_midi("star.mid");
> play_midi(midi,1);
>
> thanks
>
> my email address is supercms AT netian DOT com
>
>
>
- Raw text -