RFC: Make FluidSynth logging less noisy by default #2729
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
I'm using a SoundFont file called 8MBGMSFX.SF2 that was included with my old SoundBlaster sound card. You'd think that would be as close to an official SoundFont that you can find, and yet I'm still getting a bunch of annoying warnings when the FluidSynth driver is initialized:
And then when the drive is de-initialized:
This proof-of-concept patch re-routes FluidSynth logging to a custom function, that only prints the messages when running ScummVM in debug mode. The messages are then presented like this:
Since I've only ever seen warnings, I'm not sure what would cause the other log levels. My mapping to ScummVM debug levels / warnings / errors is therefore a bit arbitrary. But I think it would be a good idea to silence these warnings by default, so I'm submitting this for discussion.