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

Method removeInput

src/core/AudioNodeOutput.cpp:162–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void AudioNodeOutput::removeInput(ContextGraphLock & g, std::shared_ptr<AudioNodeInput> input)
163{
164 if (!input)
165 return;
166
167 for (std::vector<std::shared_ptr<AudioNodeInput>>::iterator i = m_inputs.begin(); i != m_inputs.end(); ++i)
168 {
169 if (input == *i)
170 {
171 input->setDirty();
172 i = m_inputs.erase(i);
173 if (i == m_inputs.end()) break;
174 }
175 }
176}
177
178void AudioNodeOutput::disconnectAllInputs(ContextGraphLock & g, std::shared_ptr<AudioNodeOutput> self)
179{

Callers 2

disconnectMethod · 0.80
disconnectAllMethod · 0.80

Calls 1

setDirtyMethod · 0.80

Tested by

no test coverage detected