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

Method conformChannelCounts

src/core/AudioNode.cpp:578–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576}
577
578void AudioNode::conformChannelCounts()
579{
580 return;
581
582 // no generic count conforming. nodes are responsible if they are going to do it at all
583/*
584 int inputChannelCount = input->numberOfChannels(r);
585
586 bool channelCountChanged = false;
587 for (int i = 0; i < numberOfOutputs() && !channelCountChanged; ++i)
588 {
589 channelCountChanged = isInitialized() && inputChannelCount != output(i)->numberOfChannels();
590 }
591
592 if (channelCountChanged)
593 {
594 uninitialize();
595 for (int i = 0; i < numberOfOutputs(); ++i)
596 {
597 // This will propagate the channel count to any nodes connected further down the chain...
598 output(i)->setNumberOfChannels(r, inputChannelCount);
599 }
600 initialize();
601 }
602 */
603}
604
605void AudioNode::checkNumberOfChannelsForInput(ContextRenderLock & r, AudioNodeInput * input)
606{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected