Commit 64e35acf authored by David Reid's avatar David Reid

Bug fix for DirectSound.

parent 82911b25
...@@ -6401,7 +6401,7 @@ mal_result mal_context_get_device_info__dsound(mal_context* pContext, mal_device ...@@ -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 ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment