Commit 902f8bf7 authored by dmitrykos's avatar dmitrykos

wasapi: correction to the previous commit

git-svn-id: https://subversion.assembla.com/svn/portaudio/portaudio/trunk@1963 0f58301d-fd10-0410-b4af-bbb618454e57
parent 51278484
......@@ -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);
......
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