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

CoreAudio: Report the number of active output channels in the device callback

As opposed to the number of hardware output channels.
This commit is contained in:
attila 2022-11-22 15:39:11 +01:00
parent 2ab1b462b4
commit b33dde8134

View file

@ -1771,10 +1771,13 @@ private:
if (callback != nullptr)
{
const auto numActiveOutputChannels = outputWrapper.getActiveChannels().countNumberOfSetBits();
jassert (numActiveOutputChannels <= scratchBuffer.getNumChannels());
callback->audioDeviceIOCallbackWithContext (channels,
numChannels,
scratchBuffer.getArrayOfWritePointers(),
scratchBuffer.getNumChannels(),
numActiveOutputChannels,
n,
context);
}