From a596358a3d14cf0f5d67d627ab34638e5d2ec88e Mon Sep 17 00:00:00 2001 From: rossb Date: Fri, 13 Mar 2009 16:41:39 +0000 Subject: [PATCH] fixed inputBufferAdcTime calculation for AdaptingInputOnlyProcess. patch from Yann. --- src/common/pa_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.0