From 74e470e13c92fbfbcc811186a09e39e48257923b Mon Sep 17 00:00:00 2001 From: Morgan Aldridge Date: Tue, 7 Jan 2025 16:11:49 -0500 Subject: [PATCH 1/2] Updated Makefile.bsd-wrapper to ensure that the math lib gets linked, resolving linker errors during build on OpenBSD --- Makefile.bsd-wrapper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.bsd-wrapper b/Makefile.bsd-wrapper index b7f2886..d1c0d50 100644 --- a/Makefile.bsd-wrapper +++ b/Makefile.bsd-wrapper @@ -11,7 +11,7 @@ PCCF!= pkg-config --cflags ${LIBS} CFLAGS+=${PCCF} PCLA!= pkg-config --libs ${LIBS} -LDADD+= ${PCLA} -lsndio +LDADD+= ${PCLA} -lm -lsndio DEBUG+= -Wall NOMAN= From af764fc6fc9756474f5ad08614f61f050e294325 Mon Sep 17 00:00:00 2001 From: Morgan Aldridge Date: Tue, 7 Jan 2025 16:19:48 -0500 Subject: [PATCH 2/2] Updated README's OpenBSD instructions for installing required packages, building using Makefile.bsd-wrapper, and configuring sndiod for monitor mix --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fca7a6f..298114a 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,24 @@ Visualisation hack for OpenBSD (sndio) and Linux (alsa) playback. ## OpenBSD -`sndiod` must be started in monitoring mode: `sndiod -m play,mon,midi` +Install required packages: + +``` +pkg_add fftw3 +``` + +Build: + +``` +make -f Makefile.bsd-wrapper +``` + +`sndiod` must be started in monitoring mode (see the [Multimedia: Recording a Monitor Mix of All Audio Playback](https://www.openbsd.org/faq/faq13.html#recordmon) section of the FAQ:) + +``` +rcctl set sndiod flags -s default -m play,mon -s mon +rcctl restart sndiod +``` ## Linux