freebsd-ports/audio/openal-soft/files/patch-Alc_ALc.c
Tobias Kortkamp 50346552a3 audio/openal-soft: Cleanup options
- Drop bogus FLUIDSYNTH option (MIDI support was removed in 1.17.0)
- The sndio backend is missing capture support.  This can lead to crashes
  when there is no usable fallback backend available.  As a workaround
  always enable the OSS backend when the sndio backend is wanted.
- Prioritize sndio over OSS when it's enabled which should
  make it unnecessary to fiddle with config files when building
  with both SNDIO and OSS.
- Turn off dynamically loading backend libs via dlopen
- Correct lib depends
- Update pkg-descr
- Take maintainership
2018-06-21 06:32:16 +00:00

22 lines
630 B
C

Prefer sndio over OSS when it's enabled.
--- Alc/ALc.c.orig 2018-06-21 02:27:21 UTC
+++ Alc/ALc.c
@@ -69,14 +69,14 @@ static struct BackendInfo BackendList[] = {
#ifdef HAVE_COREAUDIO
{ "core", ALCcoreAudioBackendFactory_getFactory },
#endif
-#ifdef HAVE_OSS
- { "oss", ALCossBackendFactory_getFactory },
-#endif
#ifdef HAVE_SOLARIS
{ "solaris", ALCsolarisBackendFactory_getFactory },
#endif
#ifdef HAVE_SNDIO
{ "sndio", ALCsndioBackendFactory_getFactory },
+#endif
+#ifdef HAVE_OSS
+ { "oss", ALCossBackendFactory_getFactory },
#endif
#ifdef HAVE_QSA
{ "qsa", ALCqsaBackendFactory_getFactory },