www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/27/03:00:47

From: "Martin Lain" <LAINM AT feld DOT cvut DOT cz>
Organization: CVUT FEL student
To: djgpp AT delorie DOT com
Date: Tue, 27 Oct 1998 08:59:35 MET-1MEST
MIME-Version: 1.0
Subject: Re: [q] allegro midi sound volume
X-mailer: Pegasus Mail v3.40
Message-ID: <208A12C5098@FELIS.FELD.CVUT.CZ>
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019