| 429 | } |
| 430 | |
| 431 | void 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 | |
| 446 | void AudioNode::processIfNecessary(ContextRenderLock & r, int bufferSize) |
| 447 | { |
nothing calls this directly
no test coverage detected