From f7b2d1542fa7217bcde30a82e872037c0f111837 Mon Sep 17 00:00:00 2001 From: dmitrykos Date: Wed, 21 Oct 2015 14:25:07 +0000 Subject: [PATCH] wasapi: correction to the previous commit --- src/hostapi/wasapi/pa_win_wasapi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hostapi/wasapi/pa_win_wasapi.c b/src/hostapi/wasapi/pa_win_wasapi.c index 16ed46a..d4c44cf 100644 --- a/src/hostapi/wasapi/pa_win_wasapi.c +++ b/src/hostapi/wasapi/pa_win_wasapi.c @@ -1453,11 +1453,14 @@ PaError PaWasapi_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiInd &paWasapi->devInfo[i].MinimumDevicePeriod); if (FAILED(hr)) { - PA_DEBUG(("WASAPI:%d| failed getting min/default periods by IAudioClient::GetDevicePeriod() with error[%d], will use 30000/100000 hns\n", i)); + PA_DEBUG(("WASAPI:%d| failed getting min/default periods by IAudioClient::GetDevicePeriod() with error[%08X], will use 30000/100000 hns\n", i, (UINT32)hr)); // assign WASAPI common values paWasapi->devInfo[i].DefaultDevicePeriod = 100000; paWasapi->devInfo[i].MinimumDevicePeriod = 30000; + + // ignore error, let continue further without failing with paInternalError + hr = S_OK; } //hr = tmpClient->GetMixFormat(&paWasapi->devInfo[i].MixFormat); -- 2.43.0