mpeglib: change to use SunOS API audioIO backend for NetBSD

On NetBSD, SunOS compatible native API should be used instead of OSS audio
emulator layer.

Signed-off-by: OBATA Akio <obache@wizdas.com>
pull/22/head
OBATA Akio 5 years ago
parent ff3f2006ce
commit 6dfc5bfda8

@ -28,6 +28,8 @@
#ifdef OS_BSD #ifdef OS_BSD
#ifdef __OpenBSD__ #ifdef __OpenBSD__
#include "audioIO_sndio.cpp" #include "audioIO_sndio.cpp"
#elif defined(__NetBSD__)
#include "audioIO_SunOS.cpp"
#else #else
#include "audioIO_Linux.cpp" #include "audioIO_Linux.cpp"
#endif #endif

@ -8,13 +8,19 @@
*/ */
#include <sys/types.h> #include <sys/types.h>
#ifdef OS_SunOS
#include <sys/stropts.h> #include <sys/stropts.h>
#else
#include <sys/ioctl.h>
#endif
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <stdio.h> #include <stdio.h>
#include <sys/audioio.h> #include <sys/audioio.h>
#ifdef OS_BSD
#define uchar_t u_char
#endif
#include "audioIO.h" #include "audioIO.h"
#include <iostream.h>
/* declare these static to effectively isolate the audio device */ /* declare these static to effectively isolate the audio device */

Loading…
Cancel
Save