aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-15 19:55:56 -0800
committerChris Robinson <[email protected]>2018-11-15 19:57:21 -0800
commite716c7b9889941463deff2d03a318d6be0162c9d (patch)
tree73aa61545b8ce46c758f11e09ec8c80aea524f9a /Alc/alc.cpp
parent4311c609e48d954e8fde9b6c3bf8077cfac8efa0 (diff)
Convert the PulseAudio backend factory
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r--Alc/alc.cpp37
1 files changed, 7 insertions, 30 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index 0be0e575..4c73df06 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -59,6 +59,9 @@
#include "backends/base.h"
#include "backends/null.h"
#include "backends/loopback.h"
+#ifdef HAVE_PULSEAUDIO
+#include "backends/pulseaudio.h"
+#endif
namespace {
@@ -72,55 +75,29 @@ struct BackendInfo {
};
struct BackendInfo BackendList[] = {
+#ifdef HAVE_PULSEAUDIO
+ { "pulse", PulseBackendFactory::getFactory },
+#endif
#if 0
-#ifdef HAVE_JACK
{ "jack", ALCjackBackendFactory_getFactory },
-#endif
-#ifdef HAVE_PULSEAUDIO
{ "pulse", ALCpulseBackendFactory_getFactory },
-#endif
-#ifdef HAVE_ALSA
{ "alsa", ALCalsaBackendFactory_getFactory },
-#endif
-#ifdef HAVE_COREAUDIO
{ "core", ALCcoreAudioBackendFactory_getFactory },
-#endif
-#ifdef HAVE_SOLARIS
{ "solaris", ALCsolarisBackendFactory_getFactory },
-#endif
-#ifdef HAVE_SNDIO
{ "sndio", SndioBackendFactory_getFactory },
-#endif
-#ifdef HAVE_OSS
{ "oss", ALCossBackendFactory_getFactory },
-#endif
-#ifdef HAVE_QSA
{ "qsa", ALCqsaBackendFactory_getFactory },
-#endif
-#ifdef HAVE_WASAPI
{ "wasapi", ALCwasapiBackendFactory_getFactory },
-#endif
-#ifdef HAVE_DSOUND
{ "dsound", ALCdsoundBackendFactory_getFactory },
-#endif
-#ifdef HAVE_WINMM
{ "winmm", ALCwinmmBackendFactory_getFactory },
-#endif
-#ifdef HAVE_PORTAUDIO
{ "port", ALCportBackendFactory_getFactory },
-#endif
-#ifdef HAVE_OPENSL
{ "opensl", ALCopenslBackendFactory_getFactory },
-#endif
-#ifdef HAVE_SDL2
{ "sdl2", ALCsdl2BackendFactory_getFactory },
-#endif
{ "null", ALCnullBackendFactory_getFactory },
-#ifdef HAVE_WAVE
{ "wave", ALCwaveBackendFactory_getFactory },
-#endif
#endif /* 0 */
+
{ "null", NullBackendFactory::getFactory },
};
ALsizei BackendListSize = COUNTOF(BackendList);