diff options
Diffstat (limited to 'src/device.cpp')
-rw-r--r-- | src/device.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/device.cpp b/src/device.cpp index db3d1ba..ec0a0d6 100644 --- a/src/device.cpp +++ b/src/device.cpp @@ -56,6 +56,10 @@ #include "device_coreaudio.h" #endif +#ifdef HAVE_GAME_LAUNCHER + #include "device_android.h" +#endif + namespace audiere { AbstractDevice::AbstractDevice() { @@ -168,6 +172,9 @@ namespace audiere { "directsound:DirectSound (high-performance)" ";" "winmm:Windows Multimedia (compatible)" ";" #else +#ifdef HAVE_GAME_LAUNCHER + "android:Android Audio Driver" ";" +#endif #ifdef HAVE_ALSA "alsa:Advance Linux Sound Architecture" ";" #endif @@ -256,6 +263,7 @@ namespace audiere { TRY_GROUP("extern"); TRY_GROUP("zte"); TRY_GROUP("alsa"); + TRY_GROUP("android"); TRY_GROUP("nexus"); TRY_GROUP("oss"); TRY_GROUP("coreaudio"); @@ -325,6 +333,13 @@ namespace audiere { } #endif + #ifdef HAVE_GAME_LAUNCHER + if (name == "android") { + TRY_DEVICE(AndroidAudioDevice); + return 0; + } + #endif + if (name == "null") { TRY_DEVICE(NullAudioDevice); return 0; |