Lines Matching refs:payload_type
492 uint8_t payload_type,
508 if (decoders_[acm_codec_id].payload_type == payload_type &&
517 if (neteq_->RemovePayloadType(decoders_[acm_codec_id].payload_type) !=
520 << decoders_[acm_codec_id].payload_type;
527 ret_val = neteq_->RegisterPayloadType(neteq_decoder, payload_type);
530 audio_decoder, neteq_decoder, payload_type);
533 LOG_FERR3(LS_ERROR, "AcmReceiver::AddCodec", acm_codec_id, payload_type,
542 decoders_[acm_codec_id].payload_type = payload_type;
570 if (neteq_->RemovePayloadType(decoders_[n].payload_type) == 0) {
574 << decoders_[n].payload_type;
584 int AcmReceiver::RemoveCodec(uint8_t payload_type) {
585 int codec_index = PayloadType2CodecIndex(payload_type);
589 if (neteq_->RemovePayloadType(payload_type) != NetEq::kOK) {
590 LOG_FERR1(LS_ERROR, "AcmReceiver::RemoveCodec", payload_type);
625 return decoders_[last_audio_decoder_].payload_type;
635 return decoders_[ACMCodecDB::kRED].payload_type;
645 codec->pltype = decoders_[last_audio_decoder_].payload_type;
692 int AcmReceiver::DecoderByPayloadType(uint8_t payload_type,
695 int codec_index = PayloadType2CodecIndex(payload_type);
697 LOG_FERR1(LS_ERROR, "AcmReceiver::DecoderByPayloadType", payload_type);
701 codec->pltype = decoders_[codec_index].payload_type;
706 int AcmReceiver::PayloadType2CodecIndex(uint8_t payload_type) const {
708 if (decoders_[n].registered && decoders_[n].payload_type == payload_type) {
820 uint8_t payload_type = rtp_header.payloadType;
823 payload_type == decoders_[ACMCodecDB::kRED].payload_type) {
825 payload_type = payload[0] & 0x7F;
829 return PayloadType2CodecIndex(payload_type);