Quantum
f7064a9707
Use AM_CONDITIONAL to do conditional compilation
6 years ago
Quantum
19fdf69664
Split config.c into a separate object file
6 years ago
Quantum
45b538ad10
Split output modules into separate object files
6 years ago
Quantum
2aa4a9308d
Split input modules into separate object files
6 years ago
karl
456bfc0919
Merge pull request #319 from quantum5/gradients
...
Use strdup on gradient colours as well
6 years ago
karl
1c2300dae2
Merge pull request #316 from quantum5/more-globals
...
Eliminate all ASan-detected leaks in default configuration
6 years ago
karl
cea130b8db
Merge pull request #315 from Xyene/build-badge
...
Add build status to README.md
6 years ago
karl
9a57441423
Merge pull request #314 from quantum5/fftw-malloc
...
Switch to allocating arrays for fftw with fftw_alloc_*
6 years ago
karl
c99741d870
Merge pull request #313 from Xyene/lint-ci
...
Add clang-format lint step to CI
6 years ago
Quantum
18fe85aef8
Use strdup on gradient colours as well
...
Fixes bug introduced in #310
6 years ago
Quantum
fa2f58822e
Eliminate all ASan-detected leaks in default configuration
6 years ago
Tudor Brindus
b514a3253f
Add build status to README.md
6 years ago
Quantum
7afcbada65
Switch to allocating arrays for fftw with fftw_alloc_*
6 years ago
Tudor Brindus
daed000cc3
Add clang-format lint step to CI
...
Also condense build-mac.yml and build.yml into one file, so we can have
a single action reporting the status of the entire project.
6 years ago
Tudor Brindus
42125c63f2
Run clang-format over all header files
6 years ago
karl
716fc16e40
Merge pull request #292 from quantum5/clang-format
...
Use clang-format to ensure a consistent style
6 years ago
Quantum
9d93debec4
Use clang-format to ensure a consistent style
6 years ago
karl
7408c05966
Merge pull request #311 from Xyene/loop-bounds
...
Use loop exit condition in place of always true
6 years ago
Tudor Brindus
889860d48f
Use loop exit condition in place of always true
6 years ago
karl
9ab9358d98
Merge pull request #310 from quantum5/fix-ini-leak
...
Fix memory leak in load_config with strdup and iniparser_freedict
6 years ago
karl
4ad1e5bb73
Merge pull request #309 from quantum5/less-asan-spam
...
Reduce ASan leak reports by moving buffers to global scope
6 years ago
Quantum
273c469dba
Fix memory leak in load_config with strdup and iniparser_freedict
...
Memory leaks every time settings are reloaded.
6 years ago
Quantum
a1be8c1eec
Reduce ASan leak reports by moving buffers to global scope
6 years ago
karl
01049230a5
Merge pull request #308 from quantum5/smooth-overflow
...
Allocate extra memory to fix p->smooth buffer overflow
6 years ago
karl
99069fa5ad
Merge pull request #307 from quantum5/asan
...
Add --enable-asan flag to ./configure
6 years ago
Quantum
ccad132319
Allocate extra memory to fix p->smooth buffer overflow
6 years ago
Quantum
fb0de03df2
Add --enable-asan flag to ./configure
6 years ago
karl
75c28be362
Merge pull request #304 from Xyene/ncurses-tty
...
ncurses: tentatively fix tty output
6 years ago
karl
c2b43bb22f
Merge pull request #303 from Xyene/calloc
...
Use calloc rather than malloc + custom memset on init
6 years ago
Tudor Brindus
cc1e6230c8
ncurses: tentatively fix tty output
6 years ago
Tudor Brindus
9fbf90f701
Use calloc rather than malloc + custom memset on init
6 years ago
karl
ccd3a88d24
Merge pull request #302 from Xyene/fix-last-debug
...
Missed two DEBUG to NDEBUG conversions
6 years ago
Tudor Brindus
7b1f1c6e22
Missed two DEBUG to NDEBUG conversions
6 years ago
karl
c905a047d7
Merge pull request #301 from Xyene/no-exit-error
...
ncurses: silence `setterm` errors on exit
6 years ago
karl
bbc683a53e
Merge pull request #300 from Xyene/faster-ncurses-backend
...
Rework output/terminal_ncurses.c to be more performant
6 years ago
Tudor Brindus
0c93dfdf45
Rework output/terminal_ncurses.c to be more performant
...
By scanning through the updates row-by-row rather than column-by-column,
a lot of color-changing updates are saved when using a gradient. This
seems to significantly reduce tearing when running Cava through urxvt on
an X11 server.
6 years ago
karl
db7f8d1ccb
Merge pull request #299 from Xyene/debug-printf
...
Use NDEBUG for debugging and add debug print helper
6 years ago
karl
3beb3c05dc
Merge pull request #298 from Xyene/no-wchar-format-strings
...
Improve performance by not parsing format string every cell
6 years ago
Tudor Brindus
e258288e35
ncurses: silence `setterm` errors on exit
...
`setterm` can fail, in which case cava exits with something like:
> setterm: terminal rxvt-unicode-256color does not support --blank
This commit silences the potential error.
6 years ago
karl
d8fb195d77
Merge pull request #297 from quantum5/ci
...
Add Linux and macOS CI through GitHub actions
6 years ago
karl
81e9f356e6
Merge pull request #295 from quantum5/fifo-fix
...
Reset correct arrays in input/fifo.c
6 years ago
Tudor Brindus
c31d324a11
Use NDEBUG for debugging; add debug print helper
...
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.
6 years ago
Tudor Brindus
04eabc7d8d
Improve performance by not parsing format string every cell
...
`printf` and friends need to do work to parse the "%d" format string
during each call to `mvprintw`, and then more work to convert a
possibly-variable-length integer to a string.
Since we know that 0 <= `f[bar]` % 8 < 8, we can perform the character
conversion ourselves, saving some CPU time (and battery).
6 years ago
Quantum
99efe1c19c
Reset correct arrays in input/fifo.c
6 years ago
Guanzhong Chen
59fa7c410e
Add Linux and macOS CI through GitHub actions
6 years ago
karlstav
a0f36c3b78
use bundled iniparser as libtool convenience library to avoid multiple instalation of shared lib #231
6 years ago
karlstav
7fca121171
fix wrong number of eq values in new default #231
6 years ago
karlstav
f1a5e714b8
added .libs ti gitignore
6 years ago
karlstav
c9f9bfa041
Revert "iniparser build files removed from .gitignore"
...
This reverts commit a7e8b8539e .
6 years ago
karlstav
f9b91b7264
readded bundled iniparser ref: #231
6 years ago