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

Method updateRenderingState

src/core/AudioSummingJunction.cpp:117–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void AudioSummingJunction::updateRenderingState(ContextRenderLock & r)
118{
119 if (r.context() && m_renderingStateNeedUpdating)
120 {
121 std::lock_guard<std::mutex> lock(junctionMutex);
122
123 // Copy from m_outputs to m_renderingOutputs.
124 m_renderingOutputs.clear();
125 for (std::vector<std::weak_ptr<AudioNodeOutput>>::iterator i = m_connectedOutputs.begin(); i != m_connectedOutputs.end(); ++i)
126 if (!i->expired())
127 {
128 m_renderingOutputs.push_back(*i);
129 i->lock()->updateRenderingState(r);
130 }
131
132 m_renderingStateNeedUpdating = false;
133 }
134}
135
136} // namespace lab

Callers 1

Calls 2

clearMethod · 0.80
contextMethod · 0.45

Tested by

no test coverage detected