OpenTTD-patches icon indicating copy to clipboard operation
OpenTTD-patches copied to clipboard

[Bug]: Fluidsynth driver has too much reverb

Open man-of-eel opened this issue 2 years ago • 4 comments
trafficstars

(Using Ubuntu 18.04) After updating from OpenTTD 12.2 to JGRPP 0.52.1, the music sounds different: ttdcmp.ogg.zip The first half is JGRPP, the second half is a program I hacked together with SDL_mixer but it sounds pretty much the same as it used to.

To reproduce, set the relevant lines in openttd.cfg:

musicset = "original_windows"
musicdriver = "fluidsynth:soundfont=/path/to/GM.sf2"

The soundfont used is from here. Not sure if this is also the case in trunk, I had a look through the fluidsynth files the other day to try and find where the options are defined and I don't think any of the files had changed in ages.

man-of-eel avatar Apr 11 '23 18:04 man-of-eel

https://github.com/OpenTTD/OpenTTD/pull/9814, https://github.com/OpenTTD/OpenTTD/pull/8953 or https://github.com/OpenTTD/OpenTTD/pull/10484 may be relevant?

I have not made any changes related to fluidsynth, and never have music enabled except for the odd test. I don't know what it is supposed to sound like or really anything about MIDI to that level of detail.

JGRennison avatar Apr 11 '23 20:04 JGRennison

I managed to compile latest OpenTTD and latest JGRPP (this repo) and they both don't have the issue. I think it's a packaging issue, maybe you're statically linking an old version of fluidsynth or something for Bionic. I installed a newer version ages ago to fix some issue I forgot and annoyingly I have no idea how I managed to install it. (Not sure why i care so much, it's just a music player..)

man-of-eel avatar Apr 11 '23 21:04 man-of-eel

Perhaps try the general Linux build instead of the 18.04 deb? That is probably user newer dependencies.

JGRennison avatar Apr 12 '23 19:04 JGRennison

I tried to install the deb-package for Ubuntu 22.04 Focal Fossy, that you, @JGRennison, provide with the releases. I get an installation error of a unfulfillable dependency for libfluidsynth2 in a version of 2.0.5 or newer. Ubuntu 22.04 provides only libfluidsynth3 in its own source repositories (see therefore the following screenshot).

screenshot of gDebi package installer with the deb package for JGRPP 0.54.2, showing an error message and Synaptic package manager with the list of available fluidsynth packages

Beside of that Ubuntus' GDebi installation client reports as "Lintian output". I've no clue if it has something to do with the problem.

E: openttd-jgrpp: description-synopsis-is-duplicated line 1
E: openttd-jgrpp: malformed-contact Maintainer //github.com/JGRennison/OpenTTD-patches
E: openttd-jgrpp: no-changelog usr/share/doc/openttd-jgrpp/changelog.gz (native package)
E: openttd-jgrpp: no-copyright-file
E: openttd-jgrpp: unstripped-binary-or-object usr/games/openttd

Lintian finished with exit status 0

So there really seems to be an issue with the build process of the packages. The generic Linux-build works beside the fact of no sound (#552, openttd/openttd#11048).

auge8472 avatar Jun 20 '23 19:06 auge8472