[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] Building in such a way as to suppress log messages?

From: James Thistlewood
Subject: Re: [fluid-dev] Building in such a way as to suppress log messages?
Date: Tue, 8 Sep 2020 15:21:55 +0100

Hi Tom,

thanks for your detailed and helpful response.

I know full well that log messages are there for a reason. My problem isn't just that I want to suppress log
messages to stdout - it's that I need to (in release builds, at least). My programme uses curses, so if
anything gets sent to stdout other than that which curses sends, it breaks the whole display.

I wasn't aware that a minor change (i.e. literally just one character) would be enough to constitute license
violation in practice (although yes, I suppose in principle it is). I do apologise; I normally try to be very
careful to respect license terms.

Anyway, I will now build with SDL support turned off and use fluid_set_log_function to suppress log messages.

Thanks again for your help (and for creating this remarkable piece of software).



email: jamesthistlewood@gmail.com
web: jamesthistlewood.co.uk
github: @jthistle

On Tue, 8 Sep 2020 at 13:22, Tom M. <tom.mbrt@googlemail.com> wrote:
The question should have been: "What's wrong in my client code that
fluidsynth keeps complaining about?"

Answer: fluidsynth was built with sdl2 support, therefore you should
call SDL_Init(SDL_INIT_AUDIO) in your code. Otherwise, you cannot use
the sdl2 audio driver, although fluidsynth provides the support for

If you still want to customize logging, like disabling certain log
levels, you should use our API appropriately, by calling
fluid_set_log_function() and set the function handler to NULL:

That "hack" you've found in the source code is exactly that: A hack,
whose only existing purpose is for experts who need to squeeze
fluidsynth on a 128KiB embedded ROM.

The purpose of these log messages is to point users to misusages in
their own code. And it's really frustrating when the first thought
that comes up is "How can I disable this and everything else??"

P.S.: Making changes to fluidsynth's source code and adding this
customized libfluidsynth.so build to your public repository while not
providing the source code changes, is, technically, an LGPL license
infringement. Pls, stop it!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]