Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Fix FluidSynth mode and polyphony (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
ceski-1 authored Dec 5, 2022
1 parent ef89c5e commit 2689310
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prboom2/src/MUSIC/flplayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ static int fl_init (int samplerate)
// gain control
FSET (num, "synth.gain", mus_fluidsynth_gain / 100.0); // 0.0 - 0.2 - 10.0
// behavior wrt bank select messages
FSET (str, "synth.midi-bank-select", "gm"); // general midi mode
// general midi spec says no more than 24 voices needed
FSET (int, "synth.polyphony", 24);
FSET (str, "synth.midi-bank-select", "gs"); // fluidsynth default
// general midi spec says 24 voices, but modern midi songs use more
FSET (int, "synth.polyphony", 256); // fluidsynth default

// we're not using the builtin shell or builtin midiplayer,
// and our own access to the synth is protected by mutex in i_sound.c
Expand Down

0 comments on commit 2689310

Please sign in to comment.