fluid-dev
[Top][All Lists]
Advanced

[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: Tom M.
Subject: Re: [fluid-dev] Building in such a way as to suppress log messages?
Date: Tue, 8 Sep 2020 14:22:01 +0200

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
it.

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:
http://www.fluidsynth.org/api/log_8h.html#a73045ac6812fb708625d1ea25e4e5224

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!


Tom



reply via email to

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