summaryrefslogtreecommitdiff
path: root/src/device.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/device.cpp')
-rw-r--r--src/device.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/device.cpp b/src/device.cpp
index 991058c..5438ade 100644
--- a/src/device.cpp
+++ b/src/device.cpp
@@ -60,6 +60,10 @@
#include "device_android.h"
#endif
+#ifdef HAVE_SDL
+ #include "device_sdl.h"
+#endif
+
namespace audiere {
AbstractDevice::AbstractDevice() {
@@ -202,6 +206,9 @@ namespace audiere {
#ifdef HAVE_CORE_AUDIO
"coreaudio:Core Audio (Mac OS X)"
#endif
+#ifdef HAVE_SDL
+ "sdl:Simple Direct layer"
+#endif
#endif
"null:Null output (no sound)" ;
}
@@ -267,6 +274,7 @@ namespace audiere {
TRY_GROUP("nexus");
TRY_GROUP("oss");
TRY_GROUP("coreaudio");
+ TRY_GROUP("sdl");
return 0;
}
@@ -340,6 +348,13 @@ namespace audiere {
}
#endif
+ #ifdef HAVE_SDL
+ if (name == "sdl") {
+ TRY_DEVICE(SDLAudioDevice);
+ return 0;
+ }
+ #endif
+
if (name == "null") {
TRY_DEVICE(NullAudioDevice);
return 0;