| 411 | } |
| 412 | |
| 413 | void 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 | |
| 431 | void AudioNode::setChannelCountMode(ContextGraphLock & g, ChannelCountMode mode) |
| 432 | { |
nothing calls this directly
no test coverage detected