Raise the maximum FluidSynth gain from 0.8 to 1.2 because apparently the former is too quiet in some cases.
authorJames Le Cuirot <chewi@aura-online.co.uk>
Sun, 04 Mar 2012 21:32:47 +0000
changeset 586c92001a2c18f
parent 583 2d713670db9b
child 587 56cad6484b04
Raise the maximum FluidSynth gain from 0.8 to 1.2 because apparently the former is too quiet in some cases.
fluidsynth.c
     1.1 --- a/fluidsynth.c	Sun Feb 12 17:57:17 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)