From af36f2762be9ff3f514367411783646fd3ebfecf Mon Sep 17 00:00:00 2001 From: rossb Date: Sat, 12 Feb 2011 09:26:30 +0000 Subject: [PATCH] added braces to clarify precedence in latency calculation expression --- src/hostapi/oss/pa_unix_oss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hostapi/oss/pa_unix_oss.c b/src/hostapi/oss/pa_unix_oss.c index e51201b..b523746 100644 --- a/src/hostapi/oss/pa_unix_oss.c +++ b/src/hostapi/oss/pa_unix_oss.c @@ -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 ) -- 2.43.0