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:
parent
2ab1b462b4
commit
b33dde8134
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue