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

Method setChannelCount

src/core/AudioNode.cpp:413–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413void AudioNode::setChannelCount(ContextGraphLock & g, int channelCount)
414{
415 if (!g.context())
416 {
417 throw std::invalid_argument("No context specified");
418 }
419
420 if (m_channelCount != channelCount)
421 {
422 m_channelCount = channelCount;
423 if (m_channelCountMode != ChannelCountMode::Max)
424 {
425 for (auto& input : m_inputs)
426 input->changedOutputs(g);
427 }
428 }
429}
430
431void AudioNode::setChannelCountMode(ContextGraphLock & g, ChannelCountMode mode)
432{

Callers

nothing calls this directly

Calls 2

changedOutputsMethod · 0.80
contextMethod · 0.45

Tested by

no test coverage detected