aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-03-09 18:56:24 -0800
committerChris Robinson <[email protected]>2018-03-09 18:56:24 -0800
commita6ddeaf5f190a3640f816a4767ffa8b10fbd1b5d (patch)
tree2bb9afdfdf76e7efd03cc883bcc1fa1e6caf71c7 /Alc/ALc.c
parent30821e978b69fa017cbcd76e5ff25c62f16b1d2a (diff)
Rename the mmdevapi backend to wasapi
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 00c6b6fa..8a2f67aa 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -85,8 +85,8 @@ static struct BackendInfo BackendList[] = {
#ifdef HAVE_QSA
{ "qsa", ALCqsaBackendFactory_getFactory },
#endif
-#ifdef HAVE_MMDEVAPI
- { "mmdevapi", ALCmmdevBackendFactory_getFactory },
+#ifdef HAVE_WASAPI
+ { "wasapi", ALCwasapiBackendFactory_getFactory },
#endif
#ifdef HAVE_DSOUND
{ "dsound", ALCdsoundBackendFactory_getFactory },
@@ -1046,6 +1046,16 @@ static void alc_initconfig(void)
len = (next ? ((size_t)(next-devs)) : strlen(devs));
while(len > 0 && isspace(devs[len-1]))
len--;
+#ifdef HAVE_WASAPI
+ /* HACK: For backwards compatibility, convert backend references of
+ * mmdevapi to wasapi. This should eventually be removed.
+ */
+ if(len == 8 && strncmp(devs, "mmdevapi", len) == 0)
+ {
+ devs = "wasapi";
+ len = 6;
+ }
+#endif
for(n = i;n < BackendListSize;n++)
{
if(len == strlen(BackendList[n].name) &&