void AudioNodeOutput::propagateChannelCount() { DCHECK(deferredTaskHandler().isAudioThread()); ASSERT(deferredTaskHandler().isGraphOwner()); if (isChannelCountKnown()) { // Announce to any nodes we're connected to that we changed our channel // count for its input. for (AudioNodeInput* i : m_inputs) i->handler().checkNumberOfChannelsForInput(i); } }
void AudioNodeOutput::propagateChannelCount() { ASSERT(context()->isAudioThread() && context()->isGraphOwner()); if (isChannelCountKnown()) { // Announce to any nodes we're connected to that we changed our channel count for its input. for (InputsIterator i = m_inputs.begin(); i != m_inputs.end(); ++i) { AudioNodeInput* input = *i; AudioNode* connectionNode = input->node(); connectionNode->checkNumberOfChannelsForInput(input); } } }