Sandy
0844e2e9fa
Updated the code by deleting all whitespaces ended with newline.
...
This is just nitpicknig and small update but it will save several bytes in each file
8 years ago
Adrian Rossiter
ad82c867b9
Reopen FIFO if closed or deleted
8 years ago
karlstav
3bcfc4df38
optimized alsa for 16 bit
8 years ago
karlstav
2de93cc243
simplyfied bit reading from fifo by using int16_t
8 years ago
karlstav
06469b3689
softer pthread exiting with pthread_exit
...
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
8 years ago
karlstav
9e18a91e66
remove error in last commit
8 years ago
karlstav
80b4381e80
added cleanup to config reload #195
8 years ago
karlstav
e6e4a5f363
added a check to see if pulseaudio is running
...
running cava with pulseaudio and default source caused
cava to hang if pulseaudio was not running
8 years ago
Tobias Kortkamp
21c6bf06dd
Add sndio backend
...
Signed-off-by: Tobias Kortkamp <git@tobik.me>
8 years ago
karl
ae7bc1306a
first commit of 0.6.0
...
sorted config load and validate into its own file
changed style to cahnnels
removed smoothing 'modes'
9 years ago
karl
e746d52c33
Revert "all: remove include *.c from cava.c"
9 years ago
Chelovechishko
6e27b5a9c1
all: remove include *.c from cava.c
...
add common.h and some stuff to make it compiled
9 years ago
karlstav
d8df114f78
added pa_context_disconnect() to fix #165
...
also added pa_context_unref() and pa_mainloop_free() to fix memory leaks
in the getdefaultsink function.
9 years ago
karl
25f2148796
fix memory alocation error on reload when pulse source is not auto
9 years ago
karlstav
210f7d721f
fixed string of supported input methods beeing concatenated every config reload #165
...
also did some general memory cleaning
still a slight memory leak in pulse
9 years ago
karlstav
5a7fcce5c9
remove nested functions to fix #142
...
nested functions in pulse.c where removed,
but pa_mainloop had to be declared globaly
in order to close loop after finding default sink name
this might cause more problems in the future.
9 years ago
Chelovechishko
2d4ba0b8f7
alsa: fix mistakes
...
Add static to functions. Use correct ring buffer.
9 years ago
Chelovechishko
f45f527e05
alsa: refactoring
9 years ago
karlstav
7b58f6e6fd
added auto pulseaudio source mode
...
setting source to 'auto' (also the default pulse source now)
automatically finds the monitor interface of the defualt sink
this will in most cases be most usefull
people who has manualy specified the old default value: 'defualt'
will now get an error message.
10 years ago
karlstav
be2947b064
pushing r now reloads audio, as requested in issue #81
...
added terminate on or off to audio struct. r will terminate the audio thread and jump back to audio init.
10 years ago
karlstav
20d8c816d4
changed pa default source to the defualt source
...
improved error message
10 years ago
karlstav
cdff7c64fe
increased maxlength pulseaudio buffer attribute
...
apperrently having this as the same as buffer size caused latency
10 years ago
karlstav
fb66f9753d
added experimental pulseaudio support
10 years ago
karlstav
c674073d77
added optional alsa dependencies
10 years ago
karlstav
9712160d1d
fixed fifo audio grabber bug
11 years ago
karlstav
1960705d3d
bugfix in monsterat stereo, forgot to half nr of bars
11 years ago
karlstav
6e1bd7abb0
initial work on stereo, untested
11 years ago
Michael Vetter
abc8bdce60
Remove trailing whitespaces
11 years ago
karlstav
0fc4bd94fb
adding new module files
11 years ago