diff options
author | Chris Robinson <[email protected]> | 2018-03-09 18:56:24 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-03-09 18:56:24 -0800 |
commit | a6ddeaf5f190a3640f816a4767ffa8b10fbd1b5d (patch) | |
tree | 2bb9afdfdf76e7efd03cc883bcc1fa1e6caf71c7 /Alc/ALc.c | |
parent | 30821e978b69fa017cbcd76e5ff25c62f16b1d2a (diff) |
Rename the mmdevapi backend to wasapi
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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) && |