Commit 5dc78518 authored by David Reid's avatar David Reid Committed by GitHub

Merge pull request #12 from a3f/patch-1

Support {Net,Open}BSD OSS
parents 7f6218e8 a8cd5b2d
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
// //
// Building (BSD) // 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) // Building (Emscripten)
// --------------------- // ---------------------
...@@ -6712,6 +6712,10 @@ static mal_result mal_device__main_loop__alsa(mal_device* pDevice) ...@@ -6712,6 +6712,10 @@ static mal_result mal_device__main_loop__alsa(mal_device* pDevice)
#include <fcntl.h> #include <fcntl.h>
#include <sys/soundcard.h> #include <sys/soundcard.h>
#ifndef SNDCTL_DSP_HALT
#define SNDCTL_DSP_HALT SNDCTL_DSP_RESET
#endif
int mal_open_temp_device__oss() 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. // The OSS sample code uses "/dev/mixer" as the device for getting system properties so I'm going to do the same.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment