Skip to content

Commit

Permalink
Fix stereo playback on-device
Browse files Browse the repository at this point in the history
  • Loading branch information
ndonald2 committed Jun 19, 2013
1 parent 465b7b2 commit 2123161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Novocaine/Novocaine.m
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 2123161

Please sign in to comment.