mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 09:14:04 +02:00
Don't use Pulse or JACK on BSD.
In my testing, PulseAudio is terrible on BSD. Just disabling this since OSS seems quite good.
This commit is contained in:
@@ -238,7 +238,12 @@ extern "C" {
|
|||||||
#define MAL_POSIX
|
#define MAL_POSIX
|
||||||
#include <pthread.h> // Unfortunate #include, but needed for pthread_t, pthread_mutex_t and pthread_cond_t types.
|
#include <pthread.h> // Unfortunate #include, but needed for pthread_t, pthread_mutex_t and pthread_cond_t types.
|
||||||
|
|
||||||
|
#ifdef __unix__
|
||||||
#define MAL_UNIX
|
#define MAL_UNIX
|
||||||
|
#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||||
|
#define MAL_BSD
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#define MAL_LINUX
|
#define MAL_LINUX
|
||||||
#endif
|
#endif
|
||||||
@@ -268,7 +273,7 @@ extern "C" {
|
|||||||
#define MAL_SUPPORT_ALSA
|
#define MAL_SUPPORT_ALSA
|
||||||
#endif
|
#endif
|
||||||
#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_PULSEAUDIO
|
||||||
#define MAL_SUPPORT_JACK
|
#define MAL_SUPPORT_JACK
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user