Skip to content

Commit

Permalink
fix: abstract FIFO example docs
Browse files Browse the repository at this point in the history
in the addToFifo method, the second copySomeData should start copying from someData + scope.blockSize1 instead of someData
  • Loading branch information
ncblair authored Sep 28, 2023
1 parent dd30569 commit 8f91c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/juce_core/containers/juce_AbstractFifo.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace juce
copySomeData (myBuffer + scope.startIndex1, someData, scope.blockSize1);
if (scope.blockSize2 > 0)
copySomeData (myBuffer + scope.startIndex2, someData, scope.blockSize2);
copySomeData (myBuffer + scope.startIndex2, someData + scope.blockSize1, scope.blockSize2);
}
void readFromFifo (int* someData, int numItems)
Expand Down

0 comments on commit 8f91c01

Please sign in to comment.