Skip to content
Permalink
Browse files

Raise the maximum FluidSynth gain from 0.8 to 1.2 because apparently …

…the former is too quiet in some cases.
  • Loading branch information
chewi committed Mar 4, 2012
1 parent 8e5645f commit 31dac2788ade0777f5a8f38f2ed30374a5b086b3
Showing with 2 additions and 2 deletions.
  1. +2 −2 fluidsynth.c
@@ -176,8 +176,8 @@ int fluidsynth_active(FluidSynthMidiSong *song)

void fluidsynth_setvolume(FluidSynthMidiSong *song, int volume)
{
/* FluidSynth's default is 0.2. Make 0.8 the maximum. */
fluidsynth.fluid_synth_set_gain(song->synth, (float) (volume * 0.00625));
/* FluidSynth's default is 0.2. Make 1.2 the maximum. */
fluidsynth.fluid_synth_set_gain(song->synth, (float) (volume * 1.2 / MIX_MAX_VOLUME));
}

int fluidsynth_playsome(FluidSynthMidiSong *song, void *dest, int dest_len)

0 comments on commit 31dac27

Please sign in to comment.