| 118 | } |
| 119 | |
| 120 | AudioBus * AudioNodeInput::bus(ContextRenderLock & r) |
| 121 | { |
| 122 | // Handle single connection specially to allow for in-place processing. |
| 123 | // note: The webkit sources check for max, but I can't see how that's correct |
| 124 | |
| 125 | // @tofix - did I miss part of the merge? |
| 126 | if (numberOfRenderingConnections(r) == 1) // && node()->channelCountMode() == ChannelCountMode::Max) |
| 127 | { |
| 128 | std::shared_ptr<AudioNodeOutput> output = renderingOutput(r, 0); |
| 129 | if (output) |
| 130 | { |
| 131 | return output->bus(r); |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | // Multiple connections case (or no connections). |
| 136 | return m_internalSummingBus.get(); |
| 137 | } |
| 138 | |
| 139 | AudioBus * AudioNodeInput::pull(ContextRenderLock & r, AudioBus * inPlaceBus, int bufferSize) |
| 140 | { |