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

Issue 2703373006: Injectable audio encoders: voice_engine/channel changes. (Closed)

Created:
3 years, 10 months ago by ossu
Modified:
3 years, 8 months ago
Reviewers:
the sun, kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org, henrika_webrtc, Andrew MacDonald, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc, the sun
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Injectable audio encoders: voice_engine/channel changes. Adds a SetEncoder call to voe::Channel, so that we can move encoder setup outside of Voice Engine. BUG=webrtc:5806 Review-Url: https://codereview.webrtc.org/2703373006 Cr-Commit-Position: refs/heads/master@{#17572} Committed: https://chromium.googlesource.com/external/webrtc/+/1ffbd6c93cf322de23b3772c39021c58abe4b7bc

Patch Set 1 #

Patch Set 2 : Removed builtin_audio_encoder_factory from voice_engine/BUILD.gn. Size check using sizeof(). Fixed … #

Total comments: 6

Patch Set 3 : Replaced SetSendFormat with SetEncoder in Channel. #

Total comments: 4

Patch Set 4 : Added checks, made mock use pointer, elaborated on why I make up a CodecInst #

Total comments: 1

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Patch Set 7 : Ace of Rebase #

Patch Set 8 : Removed 'virtual' from Channel::SetEncoder. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -0 lines) Patch
M webrtc/test/mock_voe_channel_proxy.h View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M webrtc/voice_engine/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/voice_engine/channel.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
M webrtc/voice_engine/channel_proxy.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M webrtc/voice_engine/channel_proxy.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 21 (10 generated)
ossu
Split off a chunk of the webrtcvoiceengine CL into this one. Should make it easier ...
3 years, 10 months ago (2017-02-22 13:21:04 UTC) #2
the sun
https://codereview.webrtc.org/2703373006/diff/20001/webrtc/voice_engine/channel.cc File webrtc/voice_engine/channel.cc (right): https://codereview.webrtc.org/2703373006/diff/20001/webrtc/voice_engine/channel.cc#newcode1218 webrtc/voice_engine/channel.cc:1218: // TODO(ossu): Make a CodecInst up for now. You ...
3 years, 10 months ago (2017-02-22 14:08:38 UTC) #3
ossu
https://codereview.webrtc.org/2703373006/diff/20001/webrtc/voice_engine/channel.cc File webrtc/voice_engine/channel.cc (right): https://codereview.webrtc.org/2703373006/diff/20001/webrtc/voice_engine/channel.cc#newcode1218 webrtc/voice_engine/channel.cc:1218: // TODO(ossu): Make a CodecInst up for now. On ...
3 years, 10 months ago (2017-02-22 14:24:41 UTC) #4
ossu
New patch set here as well. SetSendFormat is now replaced by SetEncoder(). It's simpler but ...
3 years, 10 months ago (2017-02-23 19:41:47 UTC) #6
kwiberg-webrtc
lgtm https://codereview.webrtc.org/2703373006/diff/60001/webrtc/test/mock_voe_channel_proxy.h File webrtc/test/mock_voe_channel_proxy.h (right): https://codereview.webrtc.org/2703373006/diff/60001/webrtc/test/mock_voe_channel_proxy.h#newcode31 webrtc/test/mock_voe_channel_proxy.h:31: std::unique_ptr<AudioEncoder>& encoder)); For style guide compliance, make this ...
3 years, 10 months ago (2017-02-24 11:54:44 UTC) #7
ossu
https://codereview.webrtc.org/2703373006/diff/60001/webrtc/test/mock_voe_channel_proxy.h File webrtc/test/mock_voe_channel_proxy.h (right): https://codereview.webrtc.org/2703373006/diff/60001/webrtc/test/mock_voe_channel_proxy.h#newcode31 webrtc/test/mock_voe_channel_proxy.h:31: std::unique_ptr<AudioEncoder>& encoder)); On 2017/02/24 11:54:44, kwiberg-webrtc wrote: > For ...
3 years, 10 months ago (2017-02-24 16:20:58 UTC) #8
the sun
https://codereview.webrtc.org/2703373006/diff/60001/webrtc/voice_engine/channel_proxy.cc File webrtc/voice_engine/channel_proxy.cc (right): https://codereview.webrtc.org/2703373006/diff/60001/webrtc/voice_engine/channel_proxy.cc#newcode32 webrtc/voice_engine/channel_proxy.cc:32: std::unique_ptr<AudioEncoder> encoder) { add thread check + dcheck assumptions ...
3 years, 9 months ago (2017-03-02 20:44:22 UTC) #9
ossu
Addressed the issues in comments. https://codereview.webrtc.org/2703373006/diff/60001/webrtc/voice_engine/channel_proxy.cc File webrtc/voice_engine/channel_proxy.cc (right): https://codereview.webrtc.org/2703373006/diff/60001/webrtc/voice_engine/channel_proxy.cc#newcode32 webrtc/voice_engine/channel_proxy.cc:32: std::unique_ptr<AudioEncoder> encoder) { On ...
3 years, 9 months ago (2017-03-04 01:38:52 UTC) #10
the sun
lgtm https://codereview.webrtc.org/2703373006/diff/80001/webrtc/voice_engine/channel.h File webrtc/voice_engine/channel.h (right): https://codereview.webrtc.org/2703373006/diff/80001/webrtc/voice_engine/channel.h#newcode174 webrtc/voice_engine/channel.h:174: virtual bool SetEncoder(int payload_type, Remove "virtual"?
3 years, 9 months ago (2017-03-10 12:55:43 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/2703373006/180001
3 years, 8 months ago (2017-04-06 18:35:04 UTC) #18
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 19:05:09 UTC) #21
Message was sent while issue was closed.
Committed patchset #8 (id:180001) as
https://chromium.googlesource.com/external/webrtc/+/1ffbd6c93cf322de23b3772c3...

Powered by Google App Engine
This is Rietveld 408576698