Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix stereo playback on-device

  • Loading branch information...
commit 2123161bc8670f9df42c8b49d8f52febf6035456 1 parent 465b7b2
@ndonald2 ndonald2 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Novocaine/Novocaine.m
View
2  Novocaine/Novocaine.m
@@ -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);
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.