MCPcopy Create free account
hub / github.com/LabSound/LabSound / bus

Method bus

src/core/AudioNodeInput.cpp:120–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120AudioBus * 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
139AudioBus * AudioNodeInput::pull(ContextRenderLock & r, AudioBus * inPlaceBus, int bufferSize)
140{

Callers 1

numberOfChannelsMethod · 0.45

Calls 1

getMethod · 0.80

Tested by

no test coverage detected