forked from karlstav/cava
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Viktar Lukashonak <[email protected]>
- Loading branch information
1 parent
cebff22
commit 86b6b12
Showing
13 changed files
with
253 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,4 @@ missing | |
version | ||
config_file.h | ||
.* | ||
cava |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ by [Karl Stavestrand](mailto:[email protected]) | |
What it is | ||
---------- | ||
|
||
Cava is a bar spectrum audio visualizer for terminal (ncurses) or desktop (SDL). | ||
Cava is a bar spectrum audio visualizer for terminal or desktop (SDL). | ||
|
||
works on: | ||
* Linux | ||
|
@@ -105,22 +105,22 @@ Additionally, run these commands on FreeBSD before building: | |
|
||
Debian/Ubuntu: | ||
|
||
sudo apt install build-essential libfftw3-dev libasound2-dev libncursesw5-dev libpulse-dev libtool automake autoconf-archive libiniparser-dev libsdl2-2.0-0 libsdl2-dev libpipewire-0.3-dev libjack-jackd2-dev pkgconf | ||
sudo apt install build-essential libfftw3-dev libasound2-dev libpulse-dev libtool automake autoconf-archive libiniparser-dev libsdl2-2.0-0 libsdl2-dev libpipewire-0.3-dev libjack-jackd2-dev pkgconf | ||
|
||
|
||
ArchLinux: | ||
|
||
pacman -S base-devel fftw ncurses alsa-lib iniparser pulseaudio autoconf-archive pkgconf | ||
pacman -S base-devel fftw alsa-lib iniparser pulseaudio autoconf-archive pkgconf | ||
|
||
|
||
openSUSE: | ||
|
||
zypper install alsa-devel ncurses-devel fftw3-devel libpulse-devel libtool autoconf-archive pkgconf | ||
zypper install alsa-devel fftw3-devel libpulse-devel libtool autoconf-archive pkgconf | ||
|
||
|
||
Fedora: | ||
|
||
dnf install alsa-lib-devel ncurses-devel fftw3-devel pulseaudio-libs-devel libtool autoconf-archive iniparser-devel pkgconf | ||
dnf install alsa-lib-devel fftw3-devel pulseaudio-libs-devel libtool autoconf-archive iniparser-devel pkgconf | ||
|
||
|
||
macOS: | ||
|
@@ -131,26 +131,18 @@ First install homebrew if you have't already: | |
|
||
Then install prerequisites: | ||
|
||
brew install fftw ncurses libtool automake autoconf-archive pkgconf portaudio iniparser | ||
brew install fftw libtool automake autoconf-archive pkgconf portaudio iniparser | ||
|
||
The installation location for Homebrew packages is different between Intel Macs and Apple Silicon Macs. | ||
As such, the commands will be a little bit different. | ||
You can find out which type you have [here](https://support.apple.com/en-us/HT211814#:~:text=To%20open%20About%20This%20Mac,as%20an%20Intel%2Dbased%20Mac.) | ||
|
||
For both machines, run these commands to fix macOS not finding libtool and ncursesw: | ||
For both machines, run these commands to fix macOS not finding libtool: | ||
|
||
export LIBTOOL=`which glibtool` | ||
export LIBTOOLIZE=`which glibtoolize` | ||
ln -s `which glibtoolize` /usr/local/bin/libtoolize | ||
|
||
On an Intel Mac, run the following command as well: | ||
|
||
ln -s /usr/lib/libncurses.dylib /usr/local/lib/libncursesw.dylib | ||
|
||
On an Apple Silicon Mac, run this command instead: | ||
|
||
ln -s /opt/homebrew/lib/lib/libncursesw.6.dylib /usr/local/lib/libncursesw.dylib | ||
|
||
Note that the file name may be a little bit different depending on the versions, but the directory should be the same. | ||
|
||
Additionally, run these commands on Apple Silicon Macs so that ./configure can find the Homebrew packages: | ||
|
@@ -645,8 +637,6 @@ If cava quits unexpectedly or is force killed, echo must be turned on manually w | |
|
||
### Controls | ||
|
||
NOTE: only works in ncurses output mode. | ||
|
||
| Key | Description | | ||
| --- | ----------- | | ||
| <kbd>up</kbd> / <kbd>down</kbd>| increase/decrease sensitivity | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
#include "../config.h" | ||
|
||
int init_terminal_noncurses(int inAtty, char *const fg_color_string, char *const bg_color_string, | ||
int col, int bgcol, int gradient, int gradient_count, | ||
char **gradient_colors, int w, int h, int bar_width); | ||
char **gradient_colors, int w, int h, int bar_width, | ||
enum orientation orientation); | ||
void get_terminal_dim_noncurses(int *w, int *h); | ||
int draw_terminal_noncurses(int inAtty, int lines, int width, int number_of_bars, int bar_width, | ||
int bar_spacing, int rest, int bars[], int previous_frame[], | ||
int gradient, int x_axis_info); | ||
int gradient, int x_axis_info, enum orientation orientation, | ||
int offset); | ||
void cleanup_terminal_noncurses(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.