From daa1632b6d2c26934ff02c09fb3edc5071b74fc8 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 9 Aug 2015 14:37:07 +0200 Subject: [PATCH] Move default ALSA device from hw:1,1 to hw:Loopback,1 --- README.md | 2 +- cava.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 73ffdf3..38f20d8 100644 --- a/README.md +++ b/README.md @@ -257,7 +257,7 @@ Usage -b 1..(console columns/2-1) or 200 number of bars in the spectrum (default 25 + fills up the console), program will automatically adjust if there are too many frequency bands) -i 'input method' method used for listnening to audio, supports: 'alsa' and 'fifo' -o 'output method' method used for outputting processed data, supports: 'ncurses', 'noncurses' and 'circle' - -d 'alsa device' name of alsa capture device (default 'hw:1,1') + -d 'alsa device' name of alsa capture device (default 'hw:Loopback,1') -p 'fifo path' path to fifo (default '/tmp/mpd.fifo') -c foreground color suported colors: red, green, yellow, magenta, cyan, white, blue, black (default: cyan) -C background color supported colors: same as above (default: no change) diff --git a/cava.c b/cava.c index 6b937c2..22a9ece 100644 --- a/cava.c +++ b/cava.c @@ -144,7 +144,7 @@ void load_config() // config: input if (strcmp(inputMethod, "alsa") == 0) { im = 1; - audio.source = (char *)iniparser_getstring(ini, "input:source", "hw:1,1"); + audio.source = (char *)iniparser_getstring(ini, "input:source", "hw:Loopback,1"); } if (strcmp(inputMethod, "fifo") == 0) { im = 2; @@ -288,7 +288,7 @@ Options:\n\ -b 1..(console columns/2-1) or 200 number of bars in the spectrum (default 25 + fills up the console), program will automatically adjust if there are too many frequency bands)\n\ -i 'input method' method used for listening to audio, supports: 'alsa' and 'fifo'\n\ -o 'output method' method used for outputting processed data, supports: 'ncurses', 'noncurses' and 'circle'\n\ - -d 'alsa device' name of alsa capture device (default 'hw:1,1')\n\ + -d 'alsa device' name of alsa capture device (default 'hw:Loopback,1')\n\ -p 'fifo path' path to fifo (default '/tmp/mpd.fifo')\n\ -c foreground color supported colors: red, green, yellow, magenta, cyan, white, blue, black (default: cyan)\n\ -C background color supported colors: same as above (default: no change)\n\