Lines Matching defs:numberOfChannels
148 unsigned numberOfChannels = this->numberOfChannels();
149 unsigned busNumberOfChannels = bus->numberOfChannels();
152 bool channelCountGood = numberOfChannels == busNumberOfChannels && (numberOfChannels == 1 || numberOfChannels == 2);
162 float* destinationR = (numberOfChannels < 2) ? 0 : bus->channel(1)->data();
265 bool isBusGood = destinationBus && destinationBus->length() == framesToProcess && destinationBus->numberOfChannels() == numberOfChannels();
270 unsigned numberOfChannels = this->numberOfChannels();
272 bool channelCountGood = numberOfChannels == 1 || numberOfChannels == 2;
279 float* sourceR = m_buffer->numberOfChannels() == 2 ? m_buffer->getChannelData(1)->data() : 0;
282 bool isSourceGood = sourceL && (numberOfChannels == 1 || sourceR) && m_readIndex + framesToProcess <= m_buffer->length();
293 float* destinationR = numberOfChannels == 2 ? destinationBus->channel(1)->data() : 0;
294 bool isDestinationGood = destinationL && (numberOfChannels == 1 || destinationR);
304 if (numberOfChannels == 2)
357 unsigned numberOfChannels = buffer->numberOfChannels();
358 m_resampler.configureChannels(numberOfChannels);
359 output(0)->setNumberOfChannels(numberOfChannels);
366 unsigned AudioBufferSourceNode::numberOfChannels()
368 return output(0)->numberOfChannels();