diff --git a/server/Windows/wf_wasapi.c b/server/Windows/wf_wasapi.c index 9f36c486d..2273667cb 100644 --- a/server/Windows/wf_wasapi.c +++ b/server/Windows/wf_wasapi.c @@ -245,7 +245,7 @@ DWORD WINAPI wf_rdpsnd_wasapi_thread(LPVOID lpParam) } - hnsActualDuration = (double)REFTIMES_PER_SEC * bufferFrameCount / pwfx->nSamplesPerSec; + hnsActualDuration = (UINT32)REFTIMES_PER_SEC * bufferFrameCount / pwfx->nSamplesPerSec; hr = pAudioClient->lpVtbl->Start(pAudioClient); if (FAILED(hr))