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

Issue 2392883002: Multi frequency DTMF support - sender side (Closed)

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

Description

Support multiple timestamp rates for sending DTMF. We support multiple payload types, and one which matches the audio codec the closest, is picked (or the one with lowest clock rate, if no perfect match is found). The exact clock rate is then ignored and DTMF packets are time stamped with the rate of the current audio codec. This is exactly the way the code has worked up to this point, but until now we have been under the impression that we were in fact sending 8k DTMF. In other words, this is an improvement over the current situation, since we will most likely find a payload type which matches the codec clock rate. This CL also does a little cleaning of the DTMFQueue and RTPSenderAudio classes. BUG=webrtc:2795 Committed: https://crrev.com/ffbbcac4c6111095a11536b96b600c6813444562 Cr-Commit-Position: refs/heads/master@{#15129}

Patch Set 1 #

Patch Set 2 : misc #

Patch Set 3 : misc #

Patch Set 4 : rebase onto recv side dtmf changes #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : don't special-handle rate for DTMF #

Patch Set 8 : rebase #

Patch Set 9 : rebase #

Patch Set 10 : WVoMC unittests for multi rate DTMF send #

Total comments: 27

Patch Set 11 : rebase #

Patch Set 12 : comments #

Patch Set 13 : rebase #

Total comments: 6

Patch Set 14 : rebase + comments #

Patch Set 15 : rebase #

Patch Set 16 : fix event duration issues #

Patch Set 17 : rebase #

Patch Set 18 : fix test #

Patch Set 19 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -168 lines) Patch
M webrtc/api/call/audio_send_stream.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/audio/audio_send_stream.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M webrtc/audio/audio_send_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -2 lines 0 comments Download
M webrtc/audio/audio_send_stream_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +5 lines, -2 lines 0 comments Download
M webrtc/media/engine/fakewebrtccall.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/media/engine/fakewebrtccall.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -1 line 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +37 lines, -13 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +11 lines, -9 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/dtmf_queue.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +16 lines, -12 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/dtmf_queue.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +21 lines, -36 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_rtcp_config.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_audio.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +20 lines, -21 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 9 chunks +24 lines, -45 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +13 lines, -12 lines 0 comments Download
M webrtc/test/mock_voe_channel_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/voice_engine/channel.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M webrtc/voice_engine/channel.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -2 lines 0 comments Download
M webrtc/voice_engine/channel_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/voice_engine/channel_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -2 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/standard/dtmf_test.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 22 (9 generated)
the sun
4 years, 2 months ago (2016-10-20 14:45:00 UTC) #3
the sun
4 years, 2 months ago (2016-10-20 14:55:06 UTC) #6
the sun
On 2016/10/20 14:55:06, the sun wrote: ping Stefan...
4 years, 1 month ago (2016-10-24 20:11:31 UTC) #8
the sun
On 2016/10/24 20:11:31, the sun wrote: > On 2016/10/20 14:55:06, the sun wrote: > > ...
4 years, 1 month ago (2016-10-27 07:22:48 UTC) #9
the sun
On 2016/10/27 07:22:48, the sun wrote: > On 2016/10/24 20:11:31, the sun wrote: > > ...
4 years, 1 month ago (2016-10-27 16:10:51 UTC) #10
hlundin-webrtc
Mostly LG, but I have a few comments. https://codereview.webrtc.org/2392883002/diff/180001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2392883002/diff/180001/webrtc/media/engine/webrtcvoiceengine.cc#newcode1835 webrtc/media/engine/webrtcvoiceengine.cc:1835: // ...
4 years, 1 month ago (2016-10-28 08:12:37 UTC) #11
the sun
https://codereview.webrtc.org/2392883002/diff/180001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2392883002/diff/180001/webrtc/media/engine/webrtcvoiceengine.cc#newcode1835 webrtc/media/engine/webrtcvoiceengine.cc:1835: // Note that we return if *any* codec's PT ...
4 years, 1 month ago (2016-11-07 13:33:31 UTC) #12
hlundin-webrtc
LGTM with one nit. https://codereview.webrtc.org/2392883002/diff/180001/webrtc/modules/rtp_rtcp/source/dtmf_queue.cc File webrtc/modules/rtp_rtcp/source/dtmf_queue.cc (right): https://codereview.webrtc.org/2392883002/diff/180001/webrtc/modules/rtp_rtcp/source/dtmf_queue.cc#newcode28 webrtc/modules/rtp_rtcp/source/dtmf_queue.cc:28: int DTMFQueue::NextDTMF(Event* event) { On ...
4 years, 1 month ago (2016-11-08 09:01:59 UTC) #13
stefan-webrtc
lgtm, just two minor comments. https://codereview.webrtc.org/2392883002/diff/240001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2392883002/diff/240001/webrtc/media/engine/webrtcvoiceengine.cc#newcode1899 webrtc/media/engine/webrtcvoiceengine.cc:1899: }); Sorting isn't necessary ...
4 years, 1 month ago (2016-11-08 15:05:39 UTC) #14
the sun
https://codereview.webrtc.org/2392883002/diff/240001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2392883002/diff/240001/webrtc/media/engine/webrtcvoiceengine.cc#newcode1899 webrtc/media/engine/webrtcvoiceengine.cc:1899: }); On 2016/11/08 15:05:39, stefan-webrtc (holmer) wrote: > Sorting ...
4 years, 1 month ago (2016-11-11 12:07:24 UTC) #15
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/2392883002/360001
4 years, 1 month ago (2016-11-17 12:55:44 UTC) #18
commit-bot: I haz the power
Committed patchset #19 (id:360001)
4 years, 1 month ago (2016-11-17 13:25:40 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 13:25:55 UTC) #22
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/ffbbcac4c6111095a11536b96b600c6813444562
Cr-Commit-Position: refs/heads/master@{#15129}

Powered by Google App Engine
This is Rietveld 408576698