mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 16:54:03 +02:00
Fix a warning with the UWP build.
This commit is contained in:
@@ -3030,6 +3030,7 @@ static mal_result mal_device_init__wasapi(mal_context* pContext, mal_device_type
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
IActivateAudioInterfaceAsyncOperation *pAsyncOp = NULL;
|
IActivateAudioInterfaceAsyncOperation *pAsyncOp = NULL;
|
||||||
|
malCompletionHandler completionHandler;
|
||||||
|
|
||||||
IID iid;
|
IID iid;
|
||||||
if (pDeviceID != NULL) {
|
if (pDeviceID != NULL) {
|
||||||
@@ -3049,7 +3050,6 @@ static mal_result mal_device_init__wasapi(mal_context* pContext, mal_device_type
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
malCompletionHandler completionHandler;
|
|
||||||
result = completionHandler.Init();
|
result = completionHandler.Init();
|
||||||
if (result != MAL_SUCCESS) {
|
if (result != MAL_SUCCESS) {
|
||||||
mal_CoTaskMemFree(pContext, iidStr);
|
mal_CoTaskMemFree(pContext, iidStr);
|
||||||
|
|||||||
Reference in New Issue
Block a user