]> Repos - portaudio/commitdiff
Fixed return value in Pa_StreamTime
authorphilburk <philburk@0f58301d-fd10-0410-b4af-bbb618454e57>
Wed, 24 Apr 2002 16:19:50 +0000 (16:19 +0000)
committerphilburk <philburk@0f58301d-fd10-0410-b4af-bbb618454e57>
Wed, 24 Apr 2002 16:19:50 +0000 (16:19 +0000)
pa_mac/pa_mac.c

index 414a73bbe5008e116f5675e6c07a9c8d590bff73..7a8e03009d25cf823c729c795708a21f3be9090b 100644 (file)
@@ -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;
 }
 
 /**************************************************************************