fluidsynth.c
branchSDL-1.2
changeset 585 f2943eac3fd7
parent 561 87bdb4c81c0b
child 601 05123263dab3
child 881 6bf9b92cfad9
     1.1 --- a/fluidsynth.c	Sun Feb 12 17:58:22 2012 -0500
     1.2 +++ b/fluidsynth.c	Sun Mar 04 21:32:47 2012 +0000
     1.3 @@ -176,8 +176,8 @@
     1.4  
     1.5  void fluidsynth_setvolume(FluidSynthMidiSong *song, int volume)
     1.6  {
     1.7 -	/* FluidSynth's default is 0.2. Make 0.8 the maximum. */
     1.8 -	fluidsynth.fluid_synth_set_gain(song->synth, (float) (volume * 0.00625));
     1.9 +	/* FluidSynth's default is 0.2. Make 1.2 the maximum. */
    1.10 +	fluidsynth.fluid_synth_set_gain(song->synth, (float) (volume * 1.2 / MIX_MAX_VOLUME));
    1.11  }
    1.12  
    1.13  int fluidsynth_playsome(FluidSynthMidiSong *song, void *dest, int dest_len)