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

Method addAutomaticPullNode

src/core/AudioContext.cpp:563–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561}
562
563void AudioContext::addAutomaticPullNode(std::shared_ptr<AudioNode> node)
564{
565 std::lock_guard<std::mutex> lock(m_updateMutex);
566 if (m_automaticPullNodes.find(node) == m_automaticPullNodes.end())
567 {
568 m_automaticPullNodes.insert(node);
569 m_automaticPullNodesNeedUpdating = true;
570 if (!node->isScheduledNode())
571 {
572 node->_scheduler.start(0);
573 }
574 }
575}
576
577void AudioContext::removeAutomaticPullNode(std::shared_ptr<AudioNode> node)
578{

Callers 5

AddMonitorNodesMethod · 0.80
playMethod · 0.80
playMethod · 0.80
playMethod · 0.80
playMethod · 0.80

Calls 2

isScheduledNodeMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected