summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxant <xant@dyne.org>2012-12-10 17:21:35 (GMT)
committer xant <xant@dyne.org>2012-12-10 17:21:35 (GMT)
commita893da5838ed8ca8fa27da0e4fa0609c849ab220 (patch)
tree93db767a0d9bd9c058ab08601170035ffd552e34
parentbd3524e659e7178ec345d86141edd8dbb9c457e3 (diff)
minor fixes
-rw-r--r--entities/JMXAudioOutput.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/entities/JMXAudioOutput.mm b/entities/JMXAudioOutput.mm
index 8c690e9..d8d9754 100644
--- a/entities/JMXAudioOutput.mm
+++ b/entities/JMXAudioOutput.mm
@@ -141,7 +141,7 @@ static OSStatus _FillComplexBufferProc (
#else
JMXAudioBuffer *previousSample;
previousSample = samples[wOffset%kJMXAudioOutputSamplesBufferCount];
- samples[wOffset+1%kJMXAudioOutputSamplesBufferCount] = [buffer retain];
+ samples[(wOffset+1)%kJMXAudioOutputSamplesBufferCount] = [buffer retain];
OSAtomicIncrement32(&wOffset);
// let's have the buffer released next time the active pool is drained
// we want to return as soon as possible
@@ -162,7 +162,7 @@ static OSStatus _FillComplexBufferProc (
JMXAudioBuffer *sample = nil;
if (rOffset < wOffset && !needsPrefill) {
sample = samples[rOffset%kJMXAudioOutputSamplesBufferCount];
- samples[rOffset+1%kJMXAudioOutputSamplesBufferCount] = nil;
+ samples[(rOffset+1)%kJMXAudioOutputSamplesBufferCount] = nil;
OSAtomicIncrement32(&rOffset);
}
return [sample autorelease];