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:
parent
283521f1df
commit
869a9fd994
1 changed files with 6 additions and 0 deletions
|
|
@ -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)];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue