Added detection of Open Sound System on Solaris x86
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%4036
This commit is contained in:
parent
0445aeab47
commit
09112109c3
6 changed files with 14 additions and 52 deletions
|
@ -40,11 +40,6 @@ static char rcsid =
|
|||
|
||||
/* Available audio drivers */
|
||||
static AudioBootStrap *bootstrap[] = {
|
||||
#if defined(unix) && \
|
||||
!defined(linux) && !defined(__FreeBSD__) && !defined(__CYGWIN32__) \
|
||||
&& !defined(__bsdi__)
|
||||
&AUDIO_bootstrap,
|
||||
#endif
|
||||
#ifdef OSS_SUPPORT
|
||||
&DSP_bootstrap,
|
||||
&DMA_bootstrap,
|
||||
|
@ -52,6 +47,10 @@ static AudioBootStrap *bootstrap[] = {
|
|||
#ifdef ALSA_SUPPORT
|
||||
&ALSA_bootstrap,
|
||||
#endif
|
||||
#if (defined(unix) && !defined(__CYGWIN32__)) && \
|
||||
!defined(OSS_SUPPORT) && !defined(ALSA_SUPPORT)
|
||||
&AUDIO_bootstrap,
|
||||
#endif
|
||||
#ifdef ARTSC_SUPPORT
|
||||
&ARTSC_bootstrap,
|
||||
#endif
|
||||
|
|
|
@ -99,11 +99,6 @@ typedef struct AudioBootStrap {
|
|||
SDL_AudioDevice *(*create)(int devindex);
|
||||
} AudioBootStrap;
|
||||
|
||||
#if defined(unix) && \
|
||||
!defined(linux) && !defined(__FreeBSD__) && !defined(__CYGWIN32__) \
|
||||
&& !defined(__bsdi__)
|
||||
extern AudioBootStrap AUDIO_bootstrap;
|
||||
#endif
|
||||
#ifdef OSS_SUPPORT
|
||||
extern AudioBootStrap DSP_bootstrap;
|
||||
extern AudioBootStrap DMA_bootstrap;
|
||||
|
@ -111,6 +106,10 @@ extern AudioBootStrap DMA_bootstrap;
|
|||
#ifdef ALSA_SUPPORT
|
||||
extern AudioBootStrap ALSA_bootstrap;
|
||||
#endif
|
||||
#if (defined(unix) && !defined(__CYGWIN32__)) && \
|
||||
!defined(OSS_SUPPORT) && !defined(ALSA_SUPPORT)
|
||||
extern AudioBootStrap AUDIO_bootstrap;
|
||||
#endif
|
||||
#ifdef ARTSC_SUPPORT
|
||||
extern AudioBootStrap ARTSC_bootstrap;
|
||||
#endif
|
||||
|
|
|
@ -39,21 +39,7 @@ static char rcsid =
|
|||
#include <sys/ioctl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/mman.h>
|
||||
#ifdef linux
|
||||
#include <linux/soundcard.h>
|
||||
#endif
|
||||
#ifdef __bsdi__
|
||||
#include <sys/soundcard.h>
|
||||
#endif
|
||||
#ifdef __FreeBSD__
|
||||
#include <machine/soundcard.h>
|
||||
#endif
|
||||
#ifdef __OpenBSD__
|
||||
#include <soundcard.h>
|
||||
#endif
|
||||
#ifdef __USLC__
|
||||
#include <sys/soundcard.h>
|
||||
#endif
|
||||
|
||||
#ifndef MAP_FAILED
|
||||
#define MAP_FAILED ((Uint8 *)-1)
|
||||
|
|
|
@ -37,21 +37,7 @@ static char rcsid =
|
|||
#include <sys/time.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/stat.h>
|
||||
#ifdef linux
|
||||
#include <linux/soundcard.h>
|
||||
#endif
|
||||
#ifdef __bsdi__
|
||||
#include <sys/soundcard.h>
|
||||
#endif
|
||||
#ifdef __FreeBSD__
|
||||
#include <machine/soundcard.h>
|
||||
#endif
|
||||
#ifdef __OpenBSD__
|
||||
#include <soundcard.h>
|
||||
#endif
|
||||
#ifdef __USLC__
|
||||
#include <sys/soundcard.h>
|
||||
#endif
|
||||
|
||||
#include "SDL_audio.h"
|
||||
#include "SDL_error.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue