Commit fb527d16 authored by David Reid's avatar David Reid

DirectSound: Fix a bug with mal_context_get_device_info().

parent d248f329
...@@ -5442,7 +5442,7 @@ mal_result mal_context_get_device_info__dsound(mal_context* pContext, mal_device ...@@ -5442,7 +5442,7 @@ mal_result mal_context_get_device_info__dsound(mal_context* pContext, mal_device
if (deviceType == mal_device_type_playback) { if (deviceType == mal_device_type_playback) {
((mal_DirectSoundEnumerateAProc)pContext->dsound.DirectSoundEnumerateA)(mal_context_get_device_info_callback__dsound, &data); ((mal_DirectSoundEnumerateAProc)pContext->dsound.DirectSoundEnumerateA)(mal_context_get_device_info_callback__dsound, &data);
} else { } else {
((mal_DirectSoundCaptureEnumerateAProc)pContext->dsound.DirectSoundCaptureEnumerateA)(mal_context_enumerate_devices_callback__dsound, &data); ((mal_DirectSoundCaptureEnumerateAProc)pContext->dsound.DirectSoundCaptureEnumerateA)(mal_context_get_device_info_callback__dsound, &data);
} }
if (data.found) { if (data.found) {
......
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