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

Method disconnect

src/core/AudioNodeInput.cpp:48–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void AudioNodeInput::disconnect(ContextGraphLock & g, std::shared_ptr<AudioNodeInput> junction, std::shared_ptr<AudioNodeOutput> toOutput)
49{
50 ASSERT(g.context());
51 if (!junction || !junction->destinationNode() || !toOutput)
52 return;
53
54 if (junction->isConnected(toOutput))
55 {
56 junction->junctionDisconnectOutput(toOutput);
57 toOutput->removeInput(g, junction);
58 }
59}
60
61void AudioNodeInput::disconnectAll(ContextGraphLock & g, std::shared_ptr<AudioNodeInput> fromInput)
62{

Callers

nothing calls this directly

Calls 5

destinationNodeMethod · 0.80
removeInputMethod · 0.80
contextMethod · 0.45
isConnectedMethod · 0.45

Tested by

no test coverage detected