Permalink
Browse files

Fix stereo playback on-device

  • Loading branch information...
1 parent 465b7b2 commit 2123161bc8670f9df42c8b49d8f52febf6035456 @ndonald2 ndonald2 committed Jun 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Novocaine/Novocaine.m
View
@@ -795,7 +795,7 @@ OSStatus renderCallback (void *inRefCon,
int thisNumChannels = ioData->mBuffers[iBuffer].mNumberChannels;
for (int iChannel = 0; iChannel < thisNumChannels; ++iChannel) {
- vDSP_vsadd(sm.outData+iChannel, sm.numOutputChannels, &zero, (float *)ioData->mBuffers[iBuffer].mData, thisNumChannels, inNumberFrames);
+ vDSP_vsadd(sm.outData+iChannel+iBuffer, sm.numOutputChannels, &zero, (float *)ioData->mBuffers[iBuffer].mData, thisNumChannels, inNumberFrames);
}
}
}

0 comments on commit 2123161

Please sign in to comment.