RFC: Make FluidSynth logging less noisy by default #2729
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.