From a8cd5b2dcf38103445e2f334de2b1c811ea904b7 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Sun, 11 Feb 2018 12:16:46 +0100 Subject: [PATCH] Support {Net,Open}BSD OSS Fixed this build failure building raylib: http://www.cpantesters.org/cpan/report/a069fade-0e1f-11e8-a1cf-bb670eaac09d Functionality is untested, but it now compiles on NetBSD. A quick google search for libossaudio OpenBSD indicates that linking to libossaudio would be required there too. raylib issue: raysan5/raylib#463 --- mini_al.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mini_al.h b/mini_al.h index 35846385..c9ab40fa 100644 --- a/mini_al.h +++ b/mini_al.h @@ -59,7 +59,7 @@ // // Building (BSD) // -------------- -// The BSD build uses OSS and should Just Work without any linking nor include path configuration. +// BSD build uses OSS. Requires linking to -lossaudio on {Open,Net}BSD, but not FreeBSD. // // Building (Emscripten) // --------------------- @@ -6712,6 +6712,10 @@ static mal_result mal_device__main_loop__alsa(mal_device* pDevice) #include #include +#ifndef SNDCTL_DSP_HALT +#define SNDCTL_DSP_HALT SNDCTL_DSP_RESET +#endif + int mal_open_temp_device__oss() { // The OSS sample code uses "/dev/mixer" as the device for getting system properties so I'm going to do the same.