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

Method junctionDisconnectOutput

src/core/AudioSummingJunction.cpp:86–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void AudioSummingJunction::junctionDisconnectOutput(std::shared_ptr<AudioNodeOutput> o)
87{
88 if (!o)
89 return;
90
91 std::lock_guard<std::mutex> lock(junctionMutex);
92
93 for (std::vector<std::weak_ptr<AudioNodeOutput>>::iterator i = m_connectedOutputs.begin(); i != m_connectedOutputs.end(); ++i)
94 if (!i->expired() && i->lock() == o)
95 {
96 m_connectedOutputs.erase(i);
97 m_renderingStateNeedUpdating = true;
98 break;
99 }
100}
101
102void AudioSummingJunction::junctionDisconnectAllOutputs()
103{

Callers 3

disconnectMethod · 0.80
disconnectAllMethod · 0.80
disconnectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected