Browse Source

CoreAudio: Handle ExtAudioFileRead() reading fewer frames than expected

tags/2021-05-28
ed 6 years ago
parent
commit
869a9fd994
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      modules/juce_audio_formats/codecs/juce_CoreAudioFormat.cpp

+ 6
- 0
modules/juce_audio_formats/codecs/juce_CoreAudioFormat.cpp 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)];


Loading…
Cancel
Save