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.
Backwards incompatible change: cycle foreground color changed from 'c' to 'f'
so that color reload can be 'c'.
License: MIT
Signed-off-by: David Grisham <dgrisham@mines.edu>
Now, the option to configure gradient with more than 2 colors is
supported. To use this, write the following in your config :
gradient = 1
gradient_count = <num>
gradient_color_1 = <col>
gradient_color_2 = <col>
gradient_color_3 = <col>
.
.
.
gradient_color_<num> = <col>
Replace <num> with the number of colors (2 <= colors <= 8), and replace
<col>s with your colors of choice. You must explicitly provide all
colors for the gradient to work, otherwise appropiate errors will be
shown.
pulseauio thread now uses pthread_exit to exit if something unexpected happens
it also sets audio.terminate to 1 and writes the error message to a audio.error_message
so it can be printed by main thread after cleanup. this also enables main thread to
cleanup terminal upon unexpected error on audio thread