From 86aef22e9c288f68d1c449d9b060c5c3b5438d8c Mon Sep 17 00:00:00 2001 From: robiwan Date: Wed, 30 May 2012 06:37:58 +0000 Subject: [PATCH] Fixed bug in DS code --- src/hostapi/dsound/pa_win_ds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hostapi/dsound/pa_win_ds.c b/src/hostapi/dsound/pa_win_ds.c index 7b1d665..f863cb1 100644 --- a/src/hostapi/dsound/pa_win_ds.c +++ b/src/hostapi/dsound/pa_win_ds.c @@ -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); -- 2.43.0