1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00

CoreAudio: Handle ExtAudioFileRead() reading fewer frames than expected

This commit is contained in:
ed 2019-07-04 11:37:32 +01:00
parent 283521f1df
commit 869a9fd994

View file

@ -494,6 +494,12 @@ public:
if (status != noErr)
return false;
if ((int) numFramesToRead < numThisTime)
{
numThisTime = (int) numFramesToRead;
numBytes = (size_t) numThisTime * sizeof (float);
}
for (int i = numDestChannels; --i >= 0;)
{
auto* dest = destSamples[(i < (int) numChannels ? channelMap[i] : i)];