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

Method notifyAudioSourcesConnectedToNode

src/core/PannerNode.cpp:524–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524void PannerNode::notifyAudioSourcesConnectedToNode(ContextRenderLock & r, AudioNode * node)
525{
526 ASSERT(node);
527 if (!node)
528 return;
529
530 // Go through all inputs to this node.
531 for (int i = 0; i < node->numberOfInputs(); ++i)
532 {
533 auto input = node->input(i);
534
535 // For each input, go through all of its connections, looking for SampledAudioNodes.
536 for (int j = 0; j < input->numberOfRenderingConnections(r); ++j)
537 {
538 auto connectedOutput = input->renderingOutput(r, j);
539 AudioNode * connectedNode = connectedOutput->sourceNode();
540 notifyAudioSourcesConnectedToNode(r, connectedNode); // recurse
541 }
542 }
543}
544
545float PannerNode::refDistance()
546{

Callers

nothing calls this directly

Calls 5

numberOfInputsMethod · 0.80
inputMethod · 0.80
renderingOutputMethod · 0.80
sourceNodeMethod · 0.80

Tested by

no test coverage detected