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

Method disconnectAll

src/core/AudioNodeInput.cpp:61–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void AudioNodeInput::disconnectAll(ContextGraphLock & g, std::shared_ptr<AudioNodeInput> fromInput)
62{
63 ASSERT(g.context());
64 if (!fromInput || !fromInput->destinationNode())
65 return;
66
67 for (auto i : fromInput->m_connectedOutputs)
68 {
69 auto o = i.lock();
70 if (o)
71 {
72 fromInput->junctionDisconnectOutput(o);
73 o->removeInput(g, fromInput);
74 }
75 }
76}
77
78void AudioNodeInput::updateInternalBus(ContextRenderLock & r)
79{

Callers

nothing calls this directly

Calls 4

destinationNodeMethod · 0.80
removeInputMethod · 0.80
contextMethod · 0.45

Tested by

no test coverage detected