added braces to clarify precedence in latency calculation expression

This commit is contained in:
rossb 2011-02-12 09:26:30 +00:00
commit af36f2762b

View file

@ -1121,7 +1121,7 @@ static PaError PaOssStream_Configure( PaOssStream *stream, double sampleRate, un
assert( component->hostChannelCount > 0 );
assert( component->hostFrames > 0 );
*inputLatency = component->hostFrames * (component->numBufs - 1) / sampleRate;
*inputLatency = (component->hostFrames * (component->numBufs - 1)) / sampleRate;
}
if( stream->playback )
{
@ -1132,7 +1132,7 @@ static PaError PaOssStream_Configure( PaOssStream *stream, double sampleRate, un
assert( component->hostChannelCount > 0 );
assert( component->hostFrames > 0 );
*outputLatency = component->hostFrames * (component->numBufs - 1) / sampleRate;
*outputLatency = (component->hostFrames * (component->numBufs - 1)) / sampleRate;
}
if( duplex )