From d99f23fb109043a7457bd68c82dd6b5a756fa3d8 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 16 Jan 2014 22:12:28 +0100 Subject: AUDIO: Register FluidSynth driver as plain sound type. MIDI code will control volume via MIDI events thus the generated audio should not be affected by mixer sound volumes. The initial commit(s) in d4d045b1174b4a48659f39f026ade42684b679bf / 13dc149ded691e718905049990dd0220230c500e added it as music sound type. So, this seems to be a long standing issue. --- audio/softsynth/fluidsynth.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'audio/softsynth') diff --git a/audio/softsynth/fluidsynth.cpp b/audio/softsynth/fluidsynth.cpp index efcf1be615..218a06ecc0 100644 --- a/audio/softsynth/fluidsynth.cpp +++ b/audio/softsynth/fluidsynth.cpp @@ -184,8 +184,7 @@ int MidiDriver_FluidSynth::open() { MidiDriver_Emulated::open(); - // The MT-32 emulator uses kSFXSoundType here. I don't know why. - _mixer->playStream(Audio::Mixer::kMusicSoundType, &_mixerSoundHandle, this, -1, Audio::Mixer::kMaxChannelVolume, 0, DisposeAfterUse::NO, true); + _mixer->playStream(Audio::Mixer::kPlainSoundType, &_mixerSoundHandle, this, -1, Audio::Mixer::kMaxChannelVolume, 0, DisposeAfterUse::NO, true); return 0; } -- cgit v1.2.3