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

Issue 2454373002: Added an empty AudioTransportProxy to AudioState. (Closed)

Created:
4 years, 1 month ago by aleloi
Modified:
4 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, the sun, stefan-webrtc, mflodman, tlegrand-webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Added an empty AudioTransportProxy to AudioState. All audio in calls is now routed through AudioTransportProxy. The AudioTransport implemented by VoEBaseImpl is disconnected from AudioDevice and replaced by an empty proxy layer that forwards calls to the old Transport. This is a refactoring CL in preparation for landing https://codereview.webrtc.org/2436033002/, which will connect the new AudioMixer. In the planned configuration, the currently empty AudioTransportProxy will query the new mixer for audio instead of polling data from the old Transport. Mixed audio will be passed to an AudioProcessing interface. AudioTransportProxy is initialized with an AudioProcessing*, which is currently unused. No presubmit since we implement an interface with non-const references. NOPRESUBMIT=True BUG=webrtc:6346 Committed: https://crrev.com/dd31071e19bdfe0bedc335f070e1592cfd5d2eb6 Cr-Commit-Position: refs/heads/master@{#15133}

Patch Set 1 #

Total comments: 18

Patch Set 2 : No heap transport, WillOnce, comparison with constants. #

Total comments: 23

Patch Set 3 : Added unit test for recorded data path. #

Total comments: 18

Patch Set 4 : Removed logic non-const, moved all proxy defs to .cc, removed unused mocks. #

Patch Set 5 : Rebase. GYP is removed! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -4 lines) Patch
M webrtc/audio/BUILD.gn View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M webrtc/audio/DEPS View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/audio/audio_receive_stream_unittest.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/audio/audio_send_stream_unittest.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/audio/audio_state.h View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M webrtc/audio/audio_state.cc View 1 2 3 2 chunks +17 lines, -1 line 0 comments Download
M webrtc/audio/audio_state_unittest.cc View 1 2 2 chunks +39 lines, -0 lines 0 comments Download
A webrtc/audio/audio_transport_proxy.h View 1 2 3 1 chunk +72 lines, -0 lines 0 comments Download
A webrtc/audio/audio_transport_proxy.cc View 1 2 3 1 chunk +97 lines, -0 lines 0 comments Download
M webrtc/call/BUILD.gn View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M webrtc/call/DEPS View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/call/call_unittest.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/test/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/test/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/test/mock_voice_engine.h View 1 2 3 4 4 chunks +15 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 62 (42 generated)
aleloi
Hi! Can you please take a look at this CL? @ossu, this is one of ...
4 years, 1 month ago (2016-11-01 15:53:35 UTC) #17
henrika_webrtc
https://codereview.webrtc.org/2454373002/diff/220001/webrtc/test/mock_voice_engine.h File webrtc/test/mock_voice_engine.h (right): https://codereview.webrtc.org/2454373002/diff/220001/webrtc/test/mock_voice_engine.h#newcode114 webrtc/test/mock_voice_engine.h:114: MOCK_METHOD0(audio_device_module, AudioDeviceModule*()); It is not clear to me why ...
4 years, 1 month ago (2016-11-02 10:02:06 UTC) #20
ossu
https://codereview.webrtc.org/2454373002/diff/220001/webrtc/audio/audio_receive_stream_unittest.cc File webrtc/audio/audio_receive_stream_unittest.cc (right): https://codereview.webrtc.org/2454373002/diff/220001/webrtc/audio/audio_receive_stream_unittest.cc#newcode82 webrtc/audio/audio_receive_stream_unittest.cc:82: EXPECT_CALL(voice_engine_, audio_transport()); Don't these require actions, i.e. WillOnce(Return(nullptr)) or ...
4 years, 1 month ago (2016-11-03 14:02:04 UTC) #21
stefan-webrtc
https://codereview.webrtc.org/2454373002/diff/220001/webrtc/call/bitrate_estimator_tests.cc File webrtc/call/bitrate_estimator_tests.cc (right): https://codereview.webrtc.org/2454373002/diff/220001/webrtc/call/bitrate_estimator_tests.cc#newcode114 webrtc/call/bitrate_estimator_tests.cc:114: .WillByDefault(Return(&mock_audio_device_)); Could you try to remove everything audio related ...
4 years, 1 month ago (2016-11-03 14:33:54 UTC) #23
aleloi
I've uploaded a new PS and responded to comments. Please take another look! https://codereview.webrtc.org/2454373002/diff/220001/webrtc/audio/audio_receive_stream_unittest.cc File ...
4 years, 1 month ago (2016-11-08 11:46:41 UTC) #24
henrika_webrtc
LGTM on webrtc/test/mock_voice_engine.h
4 years, 1 month ago (2016-11-08 11:49:59 UTC) #26
the sun
https://codereview.webrtc.org/2454373002/diff/260001/webrtc/audio/BUILD.gn File webrtc/audio/BUILD.gn (right): https://codereview.webrtc.org/2454373002/diff/260001/webrtc/audio/BUILD.gn#newcode57 webrtc/audio/BUILD.gn:57: if (is_win) { Where do you get this warning? ...
4 years, 1 month ago (2016-11-09 09:41:53 UTC) #28
aleloi
https://codereview.webrtc.org/2454373002/diff/260001/webrtc/audio/BUILD.gn File webrtc/audio/BUILD.gn (right): https://codereview.webrtc.org/2454373002/diff/260001/webrtc/audio/BUILD.gn#newcode57 webrtc/audio/BUILD.gn:57: if (is_win) { On 2016/11/09 09:41:52, the sun wrote: ...
4 years, 1 month ago (2016-11-09 16:37:01 UTC) #33
stefan-webrtc
Don't think my review is needed any longer, removing myself. :)
4 years, 1 month ago (2016-11-09 18:21:51 UTC) #36
aleloi
Hi! Can you take another look? I moved the transport, device and processing stubs into ...
4 years, 1 month ago (2016-11-10 16:44:39 UTC) #41
the sun
Just nits basically... LG https://codereview.webrtc.org/2454373002/diff/390001/webrtc/audio/audio_receive_stream_unittest.cc File webrtc/audio/audio_receive_stream_unittest.cc (right): https://codereview.webrtc.org/2454373002/diff/390001/webrtc/audio/audio_receive_stream_unittest.cc#newcode81 webrtc/audio/audio_receive_stream_unittest.cc:81: EXPECT_CALL(voice_engine_, audio_processing()); Q: Is .Times(1) ...
4 years, 1 month ago (2016-11-14 13:50:09 UTC) #44
aleloi
New PS and responses to comments. https://codereview.webrtc.org/2454373002/diff/390001/webrtc/audio/audio_receive_stream_unittest.cc File webrtc/audio/audio_receive_stream_unittest.cc (right): https://codereview.webrtc.org/2454373002/diff/390001/webrtc/audio/audio_receive_stream_unittest.cc#newcode81 webrtc/audio/audio_receive_stream_unittest.cc:81: EXPECT_CALL(voice_engine_, audio_processing()); On ...
4 years, 1 month ago (2016-11-14 14:24:43 UTC) #45
the sun
lgtm https://codereview.webrtc.org/2454373002/diff/390001/webrtc/audio/audio_state.h File webrtc/audio/audio_state.h (right): https://codereview.webrtc.org/2454373002/diff/390001/webrtc/audio/audio_state.h#newcode14 webrtc/audio/audio_state.h:14: #include "webrtc/api/audio/audio_mixer.h" On 2016/11/14 14:24:42, aleloi wrote: > ...
4 years, 1 month ago (2016-11-14 18:13:24 UTC) #47
ossu
Alright. LGTM!
4 years, 1 month ago (2016-11-17 14:02:41 UTC) #49
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/2454373002/470001
4 years, 1 month ago (2016-11-17 14:04:23 UTC) #52
aleloi
Wohoo! Landing time!
4 years, 1 month ago (2016-11-17 14:04:38 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/10366)
4 years, 1 month ago (2016-11-17 14:07:33 UTC) #55
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/2454373002/470001
4 years, 1 month ago (2016-11-17 14:18:24 UTC) #58
commit-bot: I haz the power
Committed patchset #5 (id:470001)
4 years, 1 month ago (2016-11-17 14:29:07 UTC) #60
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 14:29:13 UTC) #62
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/dd31071e19bdfe0bedc335f070e1592cfd5d2eb6
Cr-Commit-Position: refs/heads/master@{#15133}

Powered by Google App Engine
This is Rietveld 408576698