]> Repos - portaudio/commitdiff
wasapi: correction to the previous commit
authordmitrykos <dmitrykos@0f58301d-fd10-0410-b4af-bbb618454e57>
Wed, 21 Oct 2015 14:25:07 +0000 (14:25 +0000)
committerdmitrykos <dmitrykos@0f58301d-fd10-0410-b4af-bbb618454e57>
Wed, 21 Oct 2015 14:25:07 +0000 (14:25 +0000)
src/hostapi/wasapi/pa_win_wasapi.c

index 16ed46a63cce93983afebcb984abbd8eba59a870..d4c44cfb655128f99c24fc672a7c90c5a70e0f76 100644 (file)
@@ -1453,11 +1453,14 @@ PaError PaWasapi_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiInd
                     &paWasapi->devInfo[i].MinimumDevicePeriod);\r
                                if (FAILED(hr))\r
                                {\r
-                                       PA_DEBUG(("WASAPI:%d| failed getting min/default periods by IAudioClient::GetDevicePeriod() with error[%d], will use 30000/100000 hns\n", i));\r
+                                       PA_DEBUG(("WASAPI:%d| failed getting min/default periods by IAudioClient::GetDevicePeriod() with error[%08X], will use 30000/100000 hns\n", i, (UINT32)hr));\r
 \r
                                        // assign WASAPI common values\r
                                        paWasapi->devInfo[i].DefaultDevicePeriod = 100000;\r
                                        paWasapi->devInfo[i].MinimumDevicePeriod = 30000;\r
+\r
+                                       // ignore error, let continue further without failing with paInternalError\r
+                                       hr = S_OK;\r
                                }\r
 \r
                 //hr = tmpClient->GetMixFormat(&paWasapi->devInfo[i].MixFormat);\r