nausea

curses audio visualizer
git clone git://git.2f30.org/nausea.git
Log | Files | Refs | README | LICENSE

commit dcfad7154b4da5fe9c7cc0871703f33664e5916e
parent 0803e2e7742db9253620dffb3acfd53c24f45725
Author: lostd <lostd@2f30.org>
Date:   Mon Nov 18 18:24:15 +0200

remove unused vars, s/mpd/audio/

Diffstat:
README | 10+++++-----
spectrum.c | 17++---------------
2 files changed, 7 insertions(+), 20 deletions(-)
diff --git a/README b/README @@ -1,8 +1,8 @@ # spectrum -This is a simple spectrum visualizer for the mpd music daemon. It was -originally inspired by the visualizer screen of ncmpcpp. It depends on -the fftw3 and curses libraries. +This is a simple audio spectrum visualizer. It works well with the mpd +music player daemon. It was originally inspired by the visualizer +screen of ncmpcpp. It depends on the fftw3 and curses libraries. You need to add the following to your mpd.conf. The format is important because it's the only one supported for now. @@ -10,7 +10,7 @@ because it's the only one supported for now. audio_output { type "fifo" name "Pipe" - path "/tmp/mpd.fifo" + path "/tmp/audio.fifo" format "44100:16:1" } @@ -18,7 +18,7 @@ Then start spectrum with: $ spectrum -or specify the path of your mpd fifo with: +Alternatively specify the path of your mpd fifo with: $ spectrum <path-to-fifo> diff --git a/spectrum.c b/spectrum.c @@ -1,15 +1,5 @@ /* $Id: spectrum.c,v 1.3 2013/11/18 11:01:51 lostd Exp $ */ -/* - * Add to mpd.conf: - * audio_output { - * type "fifo" - * name "Pipe" - * path "~/.mpd/mpd.fifo" - * format "44100:16:1" - * } - */ - #include <err.h> #include <curses.h> #include <fcntl.h> @@ -25,14 +15,11 @@ static unsigned msec = 1000 / 25; /* 25 fps */ static unsigned nsamples = 2048; /* mono */ -static int samplerate = 44100; -static int bits = 16; -static int channels = 1; static char symbol = '|'; -static int die = 0; -static char *fname = "/tmp/mpd.fifo"; +static char *fname = "/tmp/audio.fifo"; static char *argv0; static int colors; +static int die; struct frame { int fd;