Raise the maximum FluidSynth gain from 0.8 to 1.2 because apparently the former is too quiet in some cases. SDL-1.2
authorJames Le Cuirot <chewi@aura-online.co.uk>
Sun, 04 Mar 2012 21:32:47 +0000
branchSDL-1.2
changeset 585f2943eac3fd7
parent 584 ea53a85853dd
child 597 a4e9c53d9c30
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: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)