Retain friendly names for audiolib drivers disabled at compile time

git-svn-id: https://svn.eduke32.com/eduke32@8239 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-10-20 11:41:54 +00:00 committed by Christoph Oelckers
parent dafd71c72f
commit 8827a0e84b

View file

@ -43,7 +43,7 @@ int ASS_EMIDICard = -1;
#define UNSUPPORTED_PCM nullptr,nullptr,nullptr,nullptr,nullptr,nullptr #define UNSUPPORTED_PCM nullptr,nullptr,nullptr,nullptr,nullptr,nullptr
#define UNSUPPORTED_MIDI nullptr,nullptr,nullptr,nullptr,nullptr,nullptr,nullptr #define UNSUPPORTED_MIDI nullptr,nullptr,nullptr,nullptr,nullptr,nullptr,nullptr
#define UNSUPPORTED_COMPLETELY { nullptr, nullptr, nullptr, UNSUPPORTED_PCM, UNSUPPORTED_MIDI }, #define UNSUPPORTED_COMPLETELY nullptr, nullptr, UNSUPPORTED_PCM, UNSUPPORTED_MIDI
static struct { static struct {
const char * DriverName; const char * DriverName;
@ -88,9 +88,9 @@ static struct {
}, },
// Simple DirectMedia Layer // Simple DirectMedia Layer
#ifdef RENDERTYPESDL
{ {
"SDL", "SDL",
#ifdef RENDERTYPESDL
SDLDrv_GetError, SDLDrv_GetError,
SDLDrv_ErrorString, SDLDrv_ErrorString,
SDLDrv_PCM_Init, SDLDrv_PCM_Init,
@ -100,15 +100,15 @@ static struct {
SDLDrv_PCM_Lock, SDLDrv_PCM_Lock,
SDLDrv_PCM_Unlock, SDLDrv_PCM_Unlock,
UNSUPPORTED_MIDI, UNSUPPORTED_MIDI,
},
#else #else
UNSUPPORTED_COMPLETELY UNSUPPORTED_COMPLETELY
#endif #endif
},
// Windows DirectSound // Windows DirectSound
#ifdef RENDERTYPEWIN
{ {
"DirectSound", "DirectSound",
#ifdef RENDERTYPEWIN
DirectSoundDrv_GetError, DirectSoundDrv_GetError,
DirectSoundDrv_ErrorString, DirectSoundDrv_ErrorString,
DirectSoundDrv_PCM_Init, DirectSoundDrv_PCM_Init,
@ -118,10 +118,10 @@ static struct {
DirectSoundDrv_PCM_Lock, DirectSoundDrv_PCM_Lock,
DirectSoundDrv_PCM_Unlock, DirectSoundDrv_PCM_Unlock,
UNSUPPORTED_MIDI, UNSUPPORTED_MIDI,
},
#else #else
UNSUPPORTED_COMPLETELY UNSUPPORTED_COMPLETELY
#endif #endif
},
// OPL3 emulation // OPL3 emulation
{ {
@ -141,9 +141,9 @@ static struct {
}, },
// Windows MultiMedia system // Windows MultiMedia system
#ifdef _WIN32
{ {
"WinMM", "WinMM",
#ifdef _WIN32
WinMMDrv_GetError, WinMMDrv_GetError,
WinMMDrv_ErrorString, WinMMDrv_ErrorString,
@ -156,10 +156,10 @@ static struct {
WinMMDrv_MIDI_SetTempo, WinMMDrv_MIDI_SetTempo,
WinMMDrv_MIDI_Lock, WinMMDrv_MIDI_Lock,
WinMMDrv_MIDI_Unlock, WinMMDrv_MIDI_Unlock,
},
#else #else
UNSUPPORTED_COMPLETELY UNSUPPORTED_COMPLETELY
#endif #endif
},
}; };