Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Issue 2545753002: Deprecated SetAudioPacketSize from RTPSender and removed calls to it. (Closed)

Created:
4 years ago by ossu
Modified:
4 years ago
CC:
webrtc-reviews_webrtc.org, danilchap, zhuangzesen_agora.io, Andrew MacDonald, henrika_webrtc, stefan-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc, the sun, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

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 Committed: https://crrev.com/00bceb1eda186848a7883b43d024d42a67d724b5 Cr-Commit-Position: refs/heads/master@{#15380}

Patch Set 1 #

Total comments: 4

Patch Set 2 : constexpr; parentheses #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -36 lines) Patch
M webrtc/modules/rtp_rtcp/include/rtp_rtcp.h View 1 chunk +4 lines, -3 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc View 1 chunk +1 line, -3 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender.h View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_audio.h View 2 chunks +0 lines, -6 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc View 1 3 chunks +12 lines, -12 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
ossu
Paving a bit of the road towards injectable audio encoders. PTAL!
4 years ago (2016-12-01 14:09:03 UTC) #5
hlundin-webrtc
lgtm with one nit. https://codereview.webrtc.org/2545753002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc File webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc (right): https://codereview.webrtc.org/2545753002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc#newcode132 webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc:132: const int kDtmfIntervalTimeMs = 50; ...
4 years ago (2016-12-01 14:13:32 UTC) #7
the sun
lgtm https://codereview.webrtc.org/2545753002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc File webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc (right): https://codereview.webrtc.org/2545753002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc#newcode165 webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc:165: if (rtp_timestamp - dtmf_timestamp_last_sent_ < dtmf_interval_time_rtp) { nit: ...
4 years ago (2016-12-01 19:43:08 UTC) #10
ossu
https://codereview.webrtc.org/2545753002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc File webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc (right): https://codereview.webrtc.org/2545753002/diff/1/webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc#newcode132 webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc:132: const int kDtmfIntervalTimeMs = 50; On 2016/12/01 14:13:32, hlundin-webrtc ...
4 years ago (2016-12-02 10:24:42 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2545753002/20001
4 years ago (2016-12-02 10:24:49 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-02 10:40:07 UTC) #17
commit-bot: I haz the power
4 years ago (2016-12-02 10:40:15 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/00bceb1eda186848a7883b43d024d42a67d724b5
Cr-Commit-Position: refs/heads/master@{#15380}

Powered by Google App Engine
This is Rietveld 408576698