Fix bug in new Core Audio output code

CQTexperiment
Christopher Snowhill 2022-01-16 14:08:17 -08:00
parent ee44c12baf
commit c8057e1037
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ static void fillBuffers(AudioBufferList *ioData, float * inbuffer, size_t count,
size_t maxCount = (ioData->mBuffers[i].mDataByteSize / sizeof(float)) - offset;
float * output = ((float *)ioData->mBuffers[i].mData) + offset;
float * input = inbuffer + i;
for (size_t j = offset, k = (count > maxCount) ? maxCount : count; j < k; ++j)
for (size_t j = 0, k = (count > maxCount) ? maxCount : count; j < k; ++j)
{
*output = *input;
output++;