]> Repos - portaudio/commitdiff
Fixed bug in DS code
authorrobiwan <robiwan@0f58301d-fd10-0410-b4af-bbb618454e57>
Wed, 30 May 2012 06:37:58 +0000 (06:37 +0000)
committerrobiwan <robiwan@0f58301d-fd10-0410-b4af-bbb618454e57>
Wed, 30 May 2012 06:37:58 +0000 (06:37 +0000)
src/hostapi/dsound/pa_win_ds.c

index 7b1d6659b4f18cf04b75951d7a4ab89cbd80e879..f863cb15d76c6f53b92825ea803371fe5cdf06c5 100644 (file)
@@ -2968,7 +2968,7 @@ static PaError StartStream( PaStream *s )
            we're using an MM timer callback via timeSetEvent or not.
         */
         assert( stream->systemTimerResolutionPeriodMs == 0 );
-        if( timeGetDevCaps( &timecaps, sizeof(TIMECAPS) == MMSYSERR_NOERROR && timecaps.wPeriodMin > 0 ) )
+        if( timeGetDevCaps( &timecaps, sizeof(TIMECAPS) ) == MMSYSERR_NOERROR && timecaps.wPeriodMin > 0 )
         {
             /* aim for resolution 4 times higher than polling rate */
             stream->systemTimerResolutionPeriodMs = (UINT)((stream->pollingPeriodSeconds * MSECS_PER_SECOND) * .25);