Lines Matching refs:payload_type
111 int CodecSampleRate(uint8_t payload_type);
112 int CodecTimestampRate(uint8_t payload_type);
113 bool IsComfortNosie(uint8_t payload_type);
584 int CodecSampleRate(uint8_t payload_type) {
585 if (payload_type == FLAGS_pcmu ||
586 payload_type == FLAGS_pcma ||
587 payload_type == FLAGS_ilbc ||
588 payload_type == FLAGS_pcm16b ||
589 payload_type == FLAGS_cn_nb) {
591 } else if (payload_type == FLAGS_isac ||
592 payload_type == FLAGS_pcm16b_wb ||
593 payload_type == FLAGS_g722 ||
594 payload_type == FLAGS_cn_wb) {
596 } else if (payload_type == FLAGS_isac_swb ||
597 payload_type == FLAGS_pcm16b_swb32 ||
598 payload_type == FLAGS_cn_swb32) {
600 } else if (payload_type == FLAGS_pcm16b_swb48 ||
601 payload_type == FLAGS_cn_swb48) {
603 } else if (payload_type == FLAGS_avt ||
604 payload_type == FLAGS_red) {
611 int CodecTimestampRate(uint8_t payload_type) {
612 if (payload_type == FLAGS_g722) {
615 return CodecSampleRate(payload_type);
619 bool IsComfortNosie(uint8_t payload_type) {
620 if (payload_type == FLAGS_cn_nb ||
621 payload_type == FLAGS_cn_wb ||
622 payload_type == FLAGS_cn_swb32 ||
623 payload_type == FLAGS_cn_swb48) {