wasapi: use Windows common Sleep() API instead of PA_Sleep()

use GetTickCount64() API which is awailable for Windows Store app instead of _ftime_s()
remove WAVEFORMAT and WAVEFORMATEX declaration and use the corresponding Windows include file instead
This commit is contained in:
dmitrykos 2016-08-14 10:52:36 +03:00
commit 326549c55e
3 changed files with 6 additions and 35 deletions

View file

@ -1367,7 +1367,7 @@ static HRESULT ActivateAudioInterface_WINRT(const PaWasapiDeviceInfo *deviceInfo
// Wait in busy loop for async operation to complete
while (SUCCEEDED(hr) && !handlerImpl->done)
{
Pa_Sleep(1);
Sleep(1);
}
(*client) = handlerImpl->out.client;
@ -4084,7 +4084,7 @@ static PaError ReadStream( PaStream* s, void *_buffer, unsigned long frames )
{
if ((sleep = ThreadIdleScheduler_NextSleep(&sched)) != 0)
{
Pa_Sleep(sleep);
Sleep(sleep);
sleep = 0;
}
}