summaryrefslogtreecommitdiff
path: root/src/music/fluidsynth.cpp
AgeCommit message (Collapse)Author
2021-06-13Codechange: convert printf DEBUG statements to fmt Debug statementsrubidium42
2021-05-10Cleanup: [Fluidsynth] Remove fluid_player_joinRubidium
The function fluid_player_join in the library is broken beyond compare for the usecases it was used for (see their #872). It does not wait until it is safe to delete the player, so it is up to the end user to ensure that. For OpenTTD we acquire a lock before fluid_synth_write_s16 and we acquire the same lock in the stop function. So, only one of the functions can be doing its thing, meaning we do not need to wait for the player to be stopped as it cannot be doing anything as we prevent that by the lock.
2021-05-05Cleanup: [Fluidsynth] Comply better with the coding stylerubidium42
2021-05-03Fix #9117, 04ce1f07: [Fluidsynth] Infinite wait when stopping song (#9181)rubidium42
In FluidSynth 2.2.0 an extra state was added to denote stopping. To transition from this state to a stopped state the rendering needs to be running. Since 04ce1f07 locking was added that skipped the rendering when something else held a lock, so the state would never get to stopped and join would never return.
2021-04-07Fix: Honor default soundfont for FluidSynthGhislain Antony Vaillant
Debian now provides a default soundfont for FluidSynth via its alternatives system. In short, FluidSynth is configured to look for `/usr/share/sounds/sf3/default-GM.sf3` as its default soundfont, and each soundfront package (FluidR3, OPL-3, MuseScore...) may provide or override this symlink. By default, FluidSynth is installed on Debian with the `TimGM6mb` soundfont by default due to its limited size. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929185 for further details.
2021-04-07Fix: Use FluidSynth default soundfontGhislain Antony Vaillant
2020-05-21Codechange: Use std::string in the driver and blitter selection code.Michael Lutz
2020-02-07Fix #7885: [Fluidsynth] Use recommended method of setting sample rateNiels Martin Hansen
2020-01-12Fix: Silence all notes when stopping song in fluidsynthMilek7
2020-01-12Fix: correct checking of fluid_settings_setnum return codeMilek7
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-30Fix: Fluidsynth should not try to lock sample data in memoryNiels Martin Hansen
2019-02-21Fix #7189: Fluidsynth volume gain too highNikolas Nyby
2019-01-05Change: Fluidsynth music driver plays through mixer instead of own audio driverNiels Martin Hansen
2018-11-01Add: Fluidsynth music driver support (jmak)Charles Pigott