Skip to content

Commit

Permalink
Raise the maximum FluidSynth gain from 0.8 to 1.2 because apparently …
Browse files Browse the repository at this point in the history
…the former is too quiet in some cases.
  • Loading branch information
chewi committed Mar 4, 2012
1 parent 8e5645f commit 31dac27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fluidsynth.c
Expand Up @@ -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)
Expand Down

0 comments on commit 31dac27

Please sign in to comment.