diff --git a/src/hostapi/wasapi/pa_win_wasapi.cpp b/src/hostapi/wasapi/pa_win_wasapi.cpp index f13a7f2..bd4387a 100644 --- a/src/hostapi/wasapi/pa_win_wasapi.cpp +++ b/src/hostapi/wasapi/pa_win_wasapi.cpp @@ -1517,7 +1517,7 @@ static PaError StartStream( PaStream *s ) } // Create a thread for this client. - stream->hThread = CreateThread( + stream->hThread = (HANDLE)_beginthreadex( NULL, // no security attribute 0, // default stack size ProcThread,