From 31dac2788ade0777f5a8f38f2ed30374a5b086b3 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Sun, 4 Mar 2012 21:32:47 +0000 Subject: [PATCH] Raise the maximum FluidSynth gain from 0.8 to 1.2 because apparently the former is too quiet in some cases. --- fluidsynth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fluidsynth.c b/fluidsynth.c index 21cc21f5..ea1e2880 100644 --- a/fluidsynth.c +++ b/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)