| 34 | } |
| 35 | |
| 36 | void AudioNodeInput::connect(ContextGraphLock & g, std::shared_ptr<AudioNodeInput> junction, std::shared_ptr<AudioNodeOutput> toOutput) |
| 37 | { |
| 38 | if (!junction || !toOutput || !junction->destinationNode()) |
| 39 | return; |
| 40 | |
| 41 | // return if input is already connected to this output. |
| 42 | if (junction->isConnected(toOutput)) return; |
| 43 | |
| 44 | toOutput->addInput(g, junction); |
| 45 | junction->junctionConnectOutput(toOutput); |
| 46 | } |
| 47 | |
| 48 | void AudioNodeInput::disconnect(ContextGraphLock & g, std::shared_ptr<AudioNodeInput> junction, std::shared_ptr<AudioNodeOutput> toOutput) |
| 49 | { |
nothing calls this directly
no test coverage detected