Remove CodecInst pt.2
The following APIs on AudioCodingModule are deprecated with this CL: static int NumberOfCodecs(); static int Codec(int, CodecInst*); static int Codec(const char*, CodecInst*, int, size_t); static int Codec(const char*, int, size_t); absl::optional<CodecInst> SendCodec() const; bool RegisterReceiveCodec(int, const SdpAudioFormat&); int RegisterExternalReceiveCodec(int, AudioDecoder*, int, int, const std::string&); int UnregisterReceiveCodec(uint8_t); int32_t ReceiveCodec(CodecInst*); absl::optional<SdpAudioFormat> ReceiveFormat(); As well as this method on RtpRtcp module: int32_t RegisterSendPayload(const CodecInst&); Bug: webrtc:7626 Change-Id: I1230732136f1fe9048cf74afdeab767ca57ac9ce Reviewed-on: https://webrtc-review.googlesource.com/c/113816 Commit-Queue: Fredrik Solenberg <solenberg@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26025}
This commit is contained in:
committed by
Commit Bot
parent
a134204aa3
commit
f693bfae5f
@ -264,13 +264,6 @@ void ModuleRtpRtcpImpl::IncomingRtcpPacket(const uint8_t* rtcp_packet,
|
||||
rtcp_receiver_.IncomingPacket(rtcp_packet, length);
|
||||
}
|
||||
|
||||
int32_t ModuleRtpRtcpImpl::RegisterSendPayload(const CodecInst& voice_codec) {
|
||||
rtcp_sender_.SetRtpClockRate(voice_codec.pltype, voice_codec.plfreq);
|
||||
return rtp_sender_->RegisterPayload(
|
||||
voice_codec.plname, voice_codec.pltype, voice_codec.plfreq,
|
||||
voice_codec.channels, (voice_codec.rate < 0) ? 0 : voice_codec.rate);
|
||||
}
|
||||
|
||||
void ModuleRtpRtcpImpl::RegisterAudioSendPayload(int payload_type,
|
||||
absl::string_view payload_name,
|
||||
int frequency,
|
||||
|
||||
Reference in New Issue
Block a user