-
-
Notifications
You must be signed in to change notification settings - Fork 947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fluidsynth driver plays music too loudly #7189
Comments
What music volume setting inside OTTD? |
This is noticeable when the volume setting is set at max, which I think is the default: Looking at the code here:
I think the issue is that this volume setter sets the gain between 0 and 1.0, and 1.0 is too loud (the default is 0.2: http://www.fluidsynth.org/api-1.x/). I get better behavior when ranging the gain between something like 0 and 0.3, but then the intro music is way too quiet. I'm still learning the code here which is why I haven't made a PR for this. |
Any updates on this, @nikolas ? |
It looks like
I've opened #7253 to resolve this issue. |
Version of OpenTTD
git master: bfdad9a
libfluidsynth 1.1.11 on Debian buster/testing.
Expected result
I expect the volume of songs played when compiled with fluidsynth to match that of when OpenTTD defaults to the external MIDI player (timidity).
Actual result
When a new game is started, the song is played at a much louder volume. But the intro song seems to play at normal volume, so the difference is kind of jarring.
Steps to reproduce
Using fluidsynth and timidity standalone utilities, these two commands both play the song at the correct volume. This track in particular is noticeably louder when played in game with fluidsynth, and causes some buzzing in my speakers.
The text was updated successfully, but these errors were encountered: