From fb351c801a51ec7c5460d86a04c9d8e72ff55ff5 Mon Sep 17 00:00:00 2001 From: philburk Date: Wed, 24 Apr 2002 16:19:50 +0000 Subject: [PATCH] Fixed return value in Pa_StreamTime --- pa_mac/pa_mac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pa_mac/pa_mac.c b/pa_mac/pa_mac.c index 414a73b..7a8e030 100644 --- a/pa_mac/pa_mac.c +++ b/pa_mac/pa_mac.c @@ -49,6 +49,7 @@ PLB20020423 - Use new method to calculate CPU load similar to other ports. Based on num frames calculated. Fixed Pa_StreamTime(). Now estimates how many frames have played based on MicroSecond timer. Added PA_MAX_USAGE_ALLOWED to prevent Mac form hanging when CPU load approaches 100%. + PLB20020424 - Fixed return value in Pa_StreamTime */ /* @@ -1372,7 +1373,7 @@ PaTimestamp Pa_StreamTime( PortAudioStream *stream ) microsElapsed = U64Subtract( now64, whenIncremented ); framesElapsed = microsElapsed * past->past_SampleRate * 0.000001; - return pahsc->pahsc_NumFramesDone + framesElapsed; + return framesDone1 + framesElapsed; } /************************************************************************** -- 2.43.0