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>
(cherry picked from commit 6dfc5bfda8)
r14.0.x
OBATA Akio 5 years ago committed by Slávek Banko
parent d11ce98ed0
commit 6842f434b6
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

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

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

Loading…
Cancel
Save