aboutsummaryrefslogtreecommitdiff
path: root/audio/softsynth
diff options
context:
space:
mode:
authorJohannes Schickel2014-01-16 22:12:28 +0100
committerJohannes Schickel2014-01-16 22:20:23 +0100
commitd99f23fb109043a7457bd68c82dd6b5a756fa3d8 (patch)
tree1900fefb1969e2e6428641f05aa6e435dc823743 /audio/softsynth
parent5ea87462e4d4959cd903229d380f186f89b37644 (diff)
downloadscummvm-rg350-d99f23fb109043a7457bd68c82dd6b5a756fa3d8.tar.gz
scummvm-rg350-d99f23fb109043a7457bd68c82dd6b5a756fa3d8.tar.bz2
scummvm-rg350-d99f23fb109043a7457bd68c82dd6b5a756fa3d8.zip
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.
Diffstat (limited to 'audio/softsynth')
-rw-r--r--audio/softsynth/fluidsynth.cpp3
1 files changed, 1 insertions, 2 deletions
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;
}