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

Issue 2429503002: Simplifying audio network adaptor by moving receiver frame length range to ctor. (Closed)

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

Description

Simplifying audio network adaptor by moving receiver frame length range to ctor. It turns out that that audio network adaptor can always be created with knowledge of receiver frame length range. There is no need to keep some infrastructure that is used for runtime setting of receiver frame length ranges. BUG=webrtc:6303 Committed: https://crrev.com/a6f495c7c20e8b5ae33766ebbb1265ba14389e5a Cr-Commit-Position: refs/heads/master@{#14748}

Patch Set 1 #

Total comments: 4

Patch Set 2 : do not touch ACM/VoE #

Total comments: 13

Patch Set 3 : using ArrayView #

Patch Set 4 : checking value of ArrayView #

Total comments: 4

Patch Set 5 : nicer solution #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -208 lines) Patch
M webrtc/base/array_view.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.h View 1 chunk +0 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl_unittest.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/controller.h View 1 chunk +0 lines, -14 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/controller.cc View 1 chunk +0 lines, -14 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/frame_length_controller.h View 1 3 chunks +1 line, -8 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/frame_length_controller.cc View 6 chunks +6 lines, -49 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/frame_length_controller_unittest.cc View 16 chunks +23 lines, -64 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/include/audio_network_adaptor.h View 1 chunk +0 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/mock/mock_audio_network_adaptor.h View 1 chunk +0 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/mock/mock_controller.h View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus.cc View 1 2 4 chunks +18 lines, -6 lines 0 comments Download
M webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc View 1 2 3 4 4 chunks +19 lines, -19 lines 0 comments Download

Messages

Total messages: 44 (23 generated)
minyue-webrtc
Hi Michael, Would you take a look at this CL?
4 years, 2 months ago (2016-10-17 14:08:41 UTC) #3
michaelt
https://codereview.webrtc.org/2429503002/diff/20001/webrtc/modules/audio_coding/audio_network_adaptor/frame_length_controller.cc File webrtc/modules/audio_coding/audio_network_adaptor/frame_length_controller.cc (right): https://codereview.webrtc.org/2429503002/diff/20001/webrtc/modules/audio_coding/audio_network_adaptor/frame_length_controller.cc#newcode40 webrtc/modules/audio_coding/audio_network_adaptor/frame_length_controller.cc:40: frame_length_ms_ = std::find(config_.encoder_frame_lengths_ms.begin(), encoder_frame_lengths_ms seams not a fitting name ...
4 years, 2 months ago (2016-10-18 08:25:23 UTC) #9
minyue-webrtc
Hi Michael, I updated the CL by not touching the AudioEncoder APIs, which makes better ...
4 years, 2 months ago (2016-10-18 13:25:13 UTC) #13
minyue-webrtc
Hi Karl, Would you help review this CL. Michael has taken a look and thought ...
4 years, 2 months ago (2016-10-18 15:00:57 UTC) #15
kwiberg-webrtc
Excellent improvement, but I have some questions. https://codereview.webrtc.org/2429503002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.cc File webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.cc (right): https://codereview.webrtc.org/2429503002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.cc#newcode145 webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.cc:145: const std::vector<int>& ...
4 years, 2 months ago (2016-10-19 09:12:01 UTC) #16
minyue-webrtc
Hi Karl, Thanks for the comments! See my reply inline. https://codereview.webrtc.org/2429503002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.cc File webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.cc (right): https://codereview.webrtc.org/2429503002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.cc#newcode145 ...
4 years, 2 months ago (2016-10-19 09:25:54 UTC) #17
kwiberg-webrtc
https://codereview.webrtc.org/2429503002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.cc File webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.cc (right): https://codereview.webrtc.org/2429503002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.cc#newcode145 webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.cc:145: const std::vector<int>& encoder_frame_lengths_ms, On 2016/10/19 09:25:54, minyue-webrtc wrote: > ...
4 years, 2 months ago (2016-10-19 10:43:33 UTC) #18
minyue-webrtc
Hi Karl, Thanks for the comments! Now is a new patch set. https://codereview.chromium.org/2429503002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.cc File webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.cc ...
4 years, 2 months ago (2016-10-21 08:26:29 UTC) #19
kwiberg-webrtc
lgtm
4 years, 2 months ago (2016-10-21 08:56:15 UTC) #20
michaelt
lgtm
4 years, 2 months ago (2016-10-21 09:31:20 UTC) #21
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/2429503002/100001
4 years, 2 months ago (2016-10-21 09:34:43 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_rel/builds/19351)
4 years, 2 months ago (2016-10-21 09:44:54 UTC) #25
minyue-webrtc
Hi Karl, Please take a look at my solution in checking ArrayView in unitttest and ...
4 years, 2 months ago (2016-10-21 20:46:07 UTC) #26
kwiberg-webrtc
I think you should eliminate CheckArrayView and just call EXPECT_THAT directly. https://codereview.chromium.org/2429503002/diff/120001/webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc File webrtc/modules/audio_coding/codecs/opus/audio_encoder_opus_unittest.cc (right): ...
4 years, 1 month ago (2016-10-24 11:58:35 UTC) #31
minyue-webrtc
Thanks to Karl. Now have a nicer solution.
4 years, 1 month ago (2016-10-24 12:52:05 UTC) #32
kwiberg-webrtc
lgtm
4 years, 1 month ago (2016-10-24 12:54:35 UTC) #33
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/2429503002/140001
4 years, 1 month ago (2016-10-24 13:11:31 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_clang_dbg on ...
4 years, 1 month ago (2016-10-24 15:12:08 UTC) #38
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/2429503002/140001
4 years, 1 month ago (2016-10-24 15:54:54 UTC) #40
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 1 month ago (2016-10-24 16:19:18 UTC) #42
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 16:19:31 UTC) #44
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a6f495c7c20e8b5ae33766ebbb1265ba14389e5a
Cr-Commit-Position: refs/heads/master@{#14748}

Powered by Google App Engine
This is Rietveld 408576698