From bbb7a5fab74cf7426413524f58e93e7997b23f12 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 25 Jul 2020 14:17:37 +0200 Subject: [PATCH] libopenal: prioritize sndio over alsa --- .../libopenal/patches/sndio-priority.patch | 26 +++++++++++++++++++ srcpkgs/libopenal/template | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/libopenal/patches/sndio-priority.patch diff --git a/srcpkgs/libopenal/patches/sndio-priority.patch b/srcpkgs/libopenal/patches/sndio-priority.patch new file mode 100644 index 00000000000..d47be3834c9 --- /dev/null +++ b/srcpkgs/libopenal/patches/sndio-priority.patch @@ -0,0 +1,26 @@ +Reason: Try sndio before alsa (and pulse). Alsa is always available +on Void systems, so openal will try to use it, even if sndio is setup, +furthermore the alsa sndio plugin does not work well with OpenAL +--- +--- alc/alc.cpp 2020-01-24 08:28:45.000000000 +0100 ++++ - 2020-07-25 14:13:19.805487926 +0200 +@@ -163,6 +163,9 @@ + #ifdef HAVE_JACK + { "jack", JackBackendFactory::getFactory }, + #endif ++#ifdef HAVE_SNDIO ++ { "sndio", SndIOBackendFactory::getFactory }, ++#endif + #ifdef HAVE_PULSEAUDIO + { "pulse", PulseBackendFactory::getFactory }, + #endif +@@ -181,9 +184,6 @@ + #ifdef HAVE_SOLARIS + { "solaris", SolarisBackendFactory::getFactory }, + #endif +-#ifdef HAVE_SNDIO +- { "sndio", SndIOBackendFactory::getFactory }, +-#endif + #ifdef HAVE_OSS + { "oss", OSSBackendFactory::getFactory }, + #endif diff --git a/srcpkgs/libopenal/template b/srcpkgs/libopenal/template index 29180831583..c1359134fe2 100644 --- a/srcpkgs/libopenal/template +++ b/srcpkgs/libopenal/template @@ -1,7 +1,7 @@ # Template file for 'libopenal' pkgname=libopenal version=1.20.1 -revision=2 +revision=3 wrksrc="openal-soft-${version}" build_style=cmake configure_args="-DALSOFT_EXAMPLES=OFF -DALSOFT_TESTS=OFF"