most likely wide chars or just ncurses requires LANG to be set
some people just haven't set up their locale properly.
The settings will revert on exit.
this resolves#109 and resolves#344
the code has up until now used shorthand var names such as bw
for bar width and lcf for lower cut-off frequency. There is no
need for this. We are now moving to a naming scheme of
descriptive names on two to three words using underscores.
This commit is split up in two parts.
First, usage of DEBUG is remapped to NDEBUG, such that the behaviour of
assert(3) is as expected with --enable-debug=false (i.e. asserts get
disabled, where they previously did not).
Second, instances of `printf` guarded by `#ifdef DEBUG` blocks have been
refactored into a dedicated `debug` macro to make the code a bit easier
to follow. `debug` is a no-op when `NDEBUG` is set.
Refs #275.
While it was mentioned that the ability to acquire this information from MPD
would be useful, allowing it to be configured explicitly could be allow FIFO
to be used for non-MPD sources as well.
this commit involves some major and perhaps braking changes
audio sorting is now done by a common function in fifo.c
all other input plugins send a s16le interleaved audio buffer here,
reformating might be done here in the future.
Audio is put in to three buffers of different lenght, shorter
buffers for higher frequencies. FFT is aplied separetly and
the ouput is combined toghether in the separate_freq_bans function.
This creates better responsivnes for higher frequencies while still
beeing able to pick up the lower ones.