configuration: Add audioio as a default audio_driver. (#8733)

Supported platforms are illumos and NetBSD, where it's the native
audio API. Right now audio_driver defaults to OSS on these platforms.
This commit is contained in:
nia 2019-05-09 17:30:44 +00:00 committed by Twinaphex
parent c39765a5b7
commit 49b81f1da2

View File

@ -178,6 +178,7 @@ enum video_driver_enum
enum audio_driver_enum
{
AUDIO_RSOUND = VIDEO_NULL + 1,
AUDIO_AUDIOIO,
AUDIO_OSS,
AUDIO_ALSA,
AUDIO_ALSATHREAD,
@ -399,6 +400,8 @@ static enum audio_driver_enum AUDIO_DEFAULT_DRIVER = AUDIO_ALSATHREAD;
static enum audio_driver_enum AUDIO_DEFAULT_DRIVER = AUDIO_ALSA;
#elif defined(HAVE_TINYALSA)
static enum audio_driver_enum AUDIO_DEFAULT_DRIVER = AUDIO_TINYALSA;
#elif defined(HAVE_AUDIOIO)
static enum audio_driver_enum AUDIO_DEFAULT_DRIVER = AUDIO_AUDIOIO;
#elif defined(HAVE_OSS)
static enum audio_driver_enum AUDIO_DEFAULT_DRIVER = AUDIO_OSS;
#elif defined(HAVE_JACK)
@ -660,6 +663,8 @@ const char *config_get_default_audio(void)
{
case AUDIO_RSOUND:
return "rsound";
case AUDIO_AUDIOIO:
return "audioio";
case AUDIO_OSS:
return "oss";
case AUDIO_ALSA: