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

Method setChannelCountMode

src/core/AudioNode.cpp:431–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431void AudioNode::setChannelCountMode(ContextGraphLock & g, ChannelCountMode mode)
432{
433 if (mode >= ChannelCountMode::End || !g.context())
434 {
435 throw std::invalid_argument("No context specified");
436 }
437
438 if (m_channelCountMode != mode)
439 {
440 m_channelCountMode = mode;
441 for (auto& input : m_inputs)
442 input->changedOutputs(g);
443 }
444}
445
446void AudioNode::processIfNecessary(ContextRenderLock & r, int bufferSize)
447{

Callers

nothing calls this directly

Calls 2

changedOutputsMethod · 0.80
contextMethod · 0.45

Tested by

no test coverage detected