Deprecated SetAudioPacketSize from RTPSender and removed calls to it.
The packet size was only used to control how often to output DTMF packets. However, it likely did not work as intended, since that interval was only set during initialization. No changes to the packet size, like what AudioEncoder::Num10MsFramesInNextPacket could indicate, were picked up. The value was instead taken from an entry in ACMCodecDB. Since it was not-fully-functional, its exact value didn't seem to matter and it was getting in the way of making it possible to supply an external audio encoder factory, I've decided to remove it altogether. The DTMF code now uses an interval of 50 ms regardless, which is a value recommended by the RFC. BUG=webrtc:5806 Review-Url: https://codereview.webrtc.org/2545753002 Cr-Commit-Position: refs/heads/master@{#15380}
This commit is contained in:
@ -1153,7 +1153,7 @@ int32_t RTPSender::SetAudioPacketSize(uint16_t packet_size_samples) {
|
||||
if (!audio_configured_) {
|
||||
return -1;
|
||||
}
|
||||
return audio_->SetAudioPacketSize(packet_size_samples);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int32_t RTPSender::SetAudioLevel(uint8_t level_d_bov) {
|
||||
|
||||
Reference in New Issue
Block a user