From 1d67c440fab1cd1d37dc95154385add0de4f83b8 Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 3 May 2018 20:41:17 +1000 Subject: [PATCH] Don't use Pulse or JACK on BSD. In my testing, PulseAudio is terrible on BSD. Just disabling this since OSS seems quite good. --- mini_al.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mini_al.h b/mini_al.h index 86067814..3384d9e9 100644 --- a/mini_al.h +++ b/mini_al.h @@ -238,7 +238,12 @@ extern "C" { #define MAL_POSIX #include // Unfortunate #include, but needed for pthread_t, pthread_mutex_t and pthread_cond_t types. - #define MAL_UNIX + #ifdef __unix__ + #define MAL_UNIX + #if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) + #define MAL_BSD + #endif + #endif #ifdef __linux__ #define MAL_LINUX #endif @@ -268,7 +273,7 @@ extern "C" { #define MAL_SUPPORT_ALSA #endif #endif - #if !defined(MAL_ANDROID) && !defined(MAL_EMSCRIPTEN) + #if !defined(MAL_BSD) && !defined(MAL_ANDROID) && !defined(MAL_EMSCRIPTEN) #define MAL_SUPPORT_PULSEAUDIO #define MAL_SUPPORT_JACK #endif