termux-packages/packages/cava/cava.c.patch
Oliver Schmidhauser eec02a26ba Add package: Cava
Cava is an Audio Visualizer that can work together with MPD. It works
out of the Box if you enable "visulizer output" in MPD by either running
`mpc enable 3` or by enabling it in [7] in ncmpcpp.
2017-08-26 23:20:48 +02:00

14 lines
415 B
Diff

diff --git a/cava.c b/cava.c
index de8f98a..e88154e 100644
--- a/cava.c
+++ b/cava.c
@@ -268,7 +268,7 @@ FILE *fp;
}
if (strcmp(inputMethod, "fifo") == 0) {
im = 2;
- audio.source = (char *)iniparser_getstring(ini, "input:source", "/tmp/mpd.fifo");
+ audio.source = (char *)iniparser_getstring(ini, "input:source", "@TERMUX_PREFIX@/tmp/mpd.fifo");
}
if (strcmp(inputMethod, "pulse") == 0) {
im = 3;