AudioBus* AudioNodeInput::bus() { ASSERT(context()->isAudioThread()); // Handle single connection specially to allow for in-place processing. if (numberOfRenderingConnections() == 1 && node()->internalChannelCountMode() == AudioNode::Max) return renderingOutput(0)->bus(); // Multiple connections case or complex ChannelCountMode (or no connections). return internalSummingBus(); }
AudioBus* AudioNodeInput::bus() { DCHECK(deferredTaskHandler().isAudioThread()); // Handle single connection specially to allow for in-place processing. if (numberOfRenderingConnections() == 1 && handler().internalChannelCountMode() == AudioHandler::Max) return renderingOutput(0)->bus(); // Multiple connections case or complex ChannelCountMode (or no connections). return internalSummingBus(); }