Lines Matching refs:channel

345 MixerInput::AddInputChannelDestination(int channel, int destination_type)
349 if (channel < 0 || channel >= fInputChannelCount)
353 if (fInputChannelInfo[channel].destination_mask & mask)
356 // verify that no other channel has id
359 "already assigned to channel %d\n", destination_type,
364 // add it to specified channel
365 fInputChannelInfo[channel].destination_mask |= mask;
373 MixerInput::RemoveInputChannelDestination(int channel, int destination_type)
377 if (channel < 0 || channel >= fInputChannelCount)
381 if ((fInputChannelInfo[channel].destination_mask & mask) == 0)
384 // remove it from specified channel
385 fInputChannelInfo[channel].destination_mask &= ~mask;
393 MixerInput::HasInputChannelDestination(int channel, int destination_type)
395 if (channel < 0 || channel >= fInputChannelCount)
399 return fInputChannelInfo[channel].destination_mask
419 MixerInput::GetInputChannelType(int channel)
421 if (channel < 0 || channel >= fInputChannelCount)
423 return GetChannelType(channel, fInputChannelMask);
428 MixerInput::SetInputChannelGain(int channel, float gain)
430 if (channel < 0 || channel >= fInputChannelCount)
435 fInputChannelInfo[channel].gain = gain;
440 MixerInput::GetInputChannelGain(int channel)
442 if (channel < 0 || channel >= fInputChannelCount)
444 return fInputChannelInfo[channel].gain;
472 // more than two channel output card
501 TRACE("_UpdateInputChannelDestinationMask: input channel %d, "
519 TRACE("_UpdateInputChannelDestinations: input channel %d, "
541 // assign each mixer channel one type
553 // assign buffer_base pointer for each mixer channel
572 TRACE("_UpdateInputChannelDestinations: mixer channel %d, type %2d, "
586 MixerInput::SetInputChannelDestinationGain(int channel, int destination_type,
589 TRACE("SetInputChannelDestinationGain: channel %d, destination_type %d,
590 gain %.4f\n", channel, destination_type, gain);
591 // we don't need the channel, as each destination_type can only exist
594 if (channel < 0 || channel >= fMixerChannelCount)
611 MixerInput::GetInputChannelDestinationGain(int channel, int destination_type)
613 // we don't need the channel, as each destination_type can only exist
616 if (channel < 0 || channel >= fMixerChannelCount)