]> Repos - portaudio/commitdiff
change CreateThread to _beginthreadex (see ticket #84)
authorgordon_gidluck <gordon_gidluck@0f58301d-fd10-0410-b4af-bbb618454e57>
Sun, 14 Sep 2008 14:18:17 +0000 (14:18 +0000)
committergordon_gidluck <gordon_gidluck@0f58301d-fd10-0410-b4af-bbb618454e57>
Sun, 14 Sep 2008 14:18:17 +0000 (14:18 +0000)
src/hostapi/wmme/pa_win_wmme.c

index c2ef68d465b271bd4339e7bcf111964513119647..2f58cfef9a32e39fa1f67676c8ab1daa3ee078a4 100644 (file)
@@ -3244,7 +3244,7 @@ static PaError StartStream( PaStream *s )
         if( result != paNoError ) goto error;
 
         /* Create thread that waits for audio buffers to be ready for processing. */
-        stream->processingThread = CreateThread( 0, 0, ProcessingThreadProc, stream, 0, &stream->processingThreadId );
+        stream->processingThread = (HANDLE)_beginthreadex( 0, 0, ProcessingThreadProc, stream, 0, &stream->processingThreadId );
         if( !stream->processingThread )
         {
             result = paUnanticipatedHostError;