Bug fix for DirectSound.

This commit is contained in:
David Reid
2018-04-25 09:53:28 +10:00
parent 82911b2586
commit 64e35acf57
+4 -4
View File
@@ -6401,7 +6401,7 @@ mal_result mal_context_get_device_info__dsound(mal_context* pContext, mal_device
} }
if (!data.found) { if (!data.found) {
return MAL_SUCCESS; return MAL_NO_DEVICE;
} }
} else { } else {
// I don't think there's a way to get the name of the default device with DirectSound. In this case we just need to use defaults. // I don't think there's a way to get the name of the default device with DirectSound. In this case we just need to use defaults.
@@ -8692,11 +8692,11 @@ mal_result mal_context_get_device_info__alsa(mal_context* pContext, mal_device_t
return result; return result;
} }
if (data.foundDevice) { if (!data.foundDevice) {
return MAL_SUCCESS;
} else {
return MAL_NO_DEVICE; return MAL_NO_DEVICE;
} }
return MAL_SUCCESS;
} }
mal_result mal_context_init__alsa(mal_context* pContext) mal_result mal_context_init__alsa(mal_context* pContext)