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.
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.
used snd_pcm_get_params to get the period size from alsa
in case this has been set by asoundrc
the period size is then used to create the audio buffer and
with the sound format calcualte the number of frames