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

Method connect

src/core/AudioNodeInput.cpp:36–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void 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
48void AudioNodeInput::disconnect(ContextGraphLock & g, std::shared_ptr<AudioNodeInput> junction, std::shared_ptr<AudioNodeOutput> toOutput)
49{

Callers

nothing calls this directly

Calls 4

destinationNodeMethod · 0.80
junctionConnectOutputMethod · 0.80
isConnectedMethod · 0.45
addInputMethod · 0.45

Tested by

no test coverage detected