Fixed return value in Pa_StreamTime
This commit is contained in:
parent
348e268d7b
commit
fb351c801a
1 changed files with 2 additions and 1 deletions
|
|
@ -49,6 +49,7 @@
|
||||||
PLB20020423 - Use new method to calculate CPU load similar to other ports. Based on num frames calculated.
|
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.
|
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%.
|
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 );
|
microsElapsed = U64Subtract( now64, whenIncremented );
|
||||||
framesElapsed = microsElapsed * past->past_SampleRate * 0.000001;
|
framesElapsed = microsElapsed * past->past_SampleRate * 0.000001;
|
||||||
|
|
||||||
return pahsc->pahsc_NumFramesDone + framesElapsed;
|
return framesDone1 + framesElapsed;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue