From: rossb Date: Fri, 13 Mar 2009 16:41:39 +0000 (+0000) Subject: fixed inputBufferAdcTime calculation for AdaptingInputOnlyProcess. patch from Yann. X-Git-Tag: svn/1415~7 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=a596358a3d14cf0f5d67d627ab34638e5d2ec88e;p=portaudio fixed inputBufferAdcTime calculation for AdaptingInputOnlyProcess. patch from Yann. --- diff --git a/src/common/pa_process.c b/src/common/pa_process.c index 8175cf6..568c774 100644 --- a/src/common/pa_process.c +++ b/src/common/pa_process.c @@ -997,7 +997,7 @@ static unsigned long AdaptingInputOnlyProcess( PaUtilBufferProcessor *bp, bp->framesPerUserBuffer, bp->timeInfo, bp->callbackStatusFlags, bp->userData ); - bp->timeInfo->inputBufferAdcTime += frameCount * bp->samplePeriod; + bp->timeInfo->inputBufferAdcTime += bp->framesPerUserBuffer * bp->samplePeriod; } bp->framesInTempInputBuffer = 0;