mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
CoreAudio: Fix build issue with Xcode 15.2 due to iterator traits requirement
This commit is contained in:
parent
d2b9952f7a
commit
8ab6c3bb9e
1 changed files with 7 additions and 4 deletions
|
|
@ -1115,14 +1115,17 @@ private:
|
|||
for (auto index = 0; index < numInputChans; ++index)
|
||||
{
|
||||
const auto info = inStream->channelInfo.getReference (index);
|
||||
const auto src = StrideIterator { ((const float*) inInputData->mBuffers[info.streamNum].mData) + info.dataOffsetSamples,
|
||||
info.dataStrideSamples }
|
||||
+ (ptrdiff_t) sampleOffset;
|
||||
auto src = StrideIterator { ((const float*) inInputData->mBuffers[info.streamNum].mData) + info.dataOffsetSamples,
|
||||
info.dataStrideSamples }
|
||||
+ (ptrdiff_t) sampleOffset;
|
||||
|
||||
if (src.stride == 0) // if this is zero, info is invalid
|
||||
continue;
|
||||
|
||||
std::copy (src, src + (ptrdiff_t) numSamplesInChunk, inStream->tempBuffers[(size_t) index]);
|
||||
const auto end = src + (ptrdiff_t) numSamplesInChunk;
|
||||
|
||||
for (auto dst = inStream->tempBuffers[(size_t) index]; src != end; ++dst, ++src)
|
||||
*dst = *src;
|
||||
}
|
||||
|
||||
// only pass a timestamp for the first chunk of each buffer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue