From: robiwan Date: Wed, 30 May 2012 06:37:58 +0000 (+0000) Subject: Fixed bug in DS code X-Git-Tag: pa_stable_v19_20140130_r1919~66 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=86aef22e9c288f68d1c449d9b060c5c3b5438d8c;p=portaudio Fixed bug in DS code --- 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);