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

Issue 2456363002: Added audio mixer and removed audio device module in AudioState::Config. (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
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Added audio mixer and removed audio device module in AudioState::Config. The audio_device_module field was currently unused. The audio_mixer field is going to be used to pass an AudioMixer to AudioState. In the hopefully-not-very-far future, the toplevel WebRTC API will allow passing a custom AudioMixer, e.g. for spatialized audio (audio in space). If no mixer is passed, a default mixer is created (the one in modules/audio_mixer). The only object which will have a permanent reference to the mixer is AudioState. AudioState is created in WebRTCVoiceEngine with a configuration object, which already contains a VoiceEngine pointer. In this CL, we extend this config object with a mixer pointer. In summary: in an upcoming CL, a mixer will be either created in or passed to WebRTCVoiceEngine. This mixer will be passed to the ctor of AudioState in a config struct. BUG=webrtc:6346 NOTRY=True Committed: https://crrev.com/81da488ab6c9c79e4a74e29d18c574285312241f Cr-Commit-Position: refs/heads/master@{#14973}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Removed default initializer. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M webrtc/api/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/api/api.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/api/call/audio_state.h View 1 2 chunks +4 lines, -2 lines 2 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (11 generated)
aleloi
Hi again! Can you take a look at this too? There are only two lines ...
4 years, 1 month ago (2016-10-31 11:45:01 UTC) #7
kwiberg-webrtc
https://codereview.webrtc.org/2456363002/diff/40001/webrtc/api/call/audio_state.h File webrtc/api/call/audio_state.h (left): https://codereview.webrtc.org/2456363002/diff/40001/webrtc/api/call/audio_state.h#oldcode37 webrtc/api/call/audio_state.h:37: AudioDeviceModule* audio_device_module = nullptr; On 2016/10/31 11:45:01, aleloi wrote: ...
4 years, 1 month ago (2016-10-31 12:31:06 UTC) #8
aleloi
https://codereview.webrtc.org/2456363002/diff/40001/webrtc/api/call/audio_state.h File webrtc/api/call/audio_state.h (right): https://codereview.webrtc.org/2456363002/diff/40001/webrtc/api/call/audio_state.h#newcode39 webrtc/api/call/audio_state.h:39: rtc::scoped_refptr<AudioMixer> audio_mixer = nullptr; On 2016/10/31 12:31:06, kwiberg-webrtc wrote: ...
4 years, 1 month ago (2016-10-31 12:44:01 UTC) #9
kwiberg-webrtc
https://codereview.webrtc.org/2456363002/diff/40001/webrtc/api/call/audio_state.h File webrtc/api/call/audio_state.h (right): https://codereview.webrtc.org/2456363002/diff/40001/webrtc/api/call/audio_state.h#newcode39 webrtc/api/call/audio_state.h:39: rtc::scoped_refptr<AudioMixer> audio_mixer = nullptr; On 2016/10/31 12:44:01, aleloi wrote: ...
4 years, 1 month ago (2016-10-31 13:30:33 UTC) #10
aleloi
https://codereview.webrtc.org/2456363002/diff/40001/webrtc/api/call/audio_state.h File webrtc/api/call/audio_state.h (right): https://codereview.webrtc.org/2456363002/diff/40001/webrtc/api/call/audio_state.h#newcode39 webrtc/api/call/audio_state.h:39: rtc::scoped_refptr<AudioMixer> audio_mixer = nullptr; On 2016/10/31 13:30:33, kwiberg-webrtc wrote: ...
4 years, 1 month ago (2016-10-31 14:56:40 UTC) #11
kwiberg-webrtc
https://codereview.webrtc.org/2456363002/diff/40001/webrtc/api/call/audio_state.h File webrtc/api/call/audio_state.h (right): https://codereview.webrtc.org/2456363002/diff/40001/webrtc/api/call/audio_state.h#newcode39 webrtc/api/call/audio_state.h:39: rtc::scoped_refptr<AudioMixer> audio_mixer = nullptr; On 2016/10/31 14:56:40, aleloi wrote: ...
4 years, 1 month ago (2016-11-01 00:46:00 UTC) #12
ossu
https://codereview.webrtc.org/2456363002/diff/40001/webrtc/api/call/audio_state.h File webrtc/api/call/audio_state.h (right): https://codereview.webrtc.org/2456363002/diff/40001/webrtc/api/call/audio_state.h#newcode39 webrtc/api/call/audio_state.h:39: rtc::scoped_refptr<AudioMixer> audio_mixer = nullptr; On 2016/11/01 00:45:59, kwiberg-webrtc wrote: ...
4 years, 1 month ago (2016-11-01 16:06:37 UTC) #14
aleloi
Ping pling! I want to leave the scoped_refptr for the time being. In part because ...
4 years, 1 month ago (2016-11-08 11:58:35 UTC) #15
ossu
On 2016/11/08 11:58:35, aleloi wrote: > Ping pling! I want to leave the scoped_refptr for ...
4 years, 1 month ago (2016-11-08 12:00:42 UTC) #16
kwiberg-webrtc
lgtm
4 years, 1 month ago (2016-11-08 12:23:53 UTC) #17
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/2456363002/60001
4 years, 1 month ago (2016-11-08 12:25:16 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 1 month ago (2016-11-08 12:26:34 UTC) #21
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/81da488ab6c9c79e4a74e29d18c574285312241f Cr-Commit-Position: refs/heads/master@{#14973}
4 years, 1 month ago (2016-11-08 12:26:42 UTC) #23
the sun
https://codereview.webrtc.org/2456363002/diff/60001/webrtc/api/call/audio_state.h File webrtc/api/call/audio_state.h (right): https://codereview.webrtc.org/2456363002/diff/60001/webrtc/api/call/audio_state.h#newcode19 webrtc/api/call/audio_state.h:19: class AudioDeviceModule; Please remove - not needed anymore.
4 years, 1 month ago (2016-11-09 10:51:45 UTC) #25
aleloi
4 years, 1 month ago (2016-11-09 13:10:15 UTC) #26
Message was sent while issue was closed.
https://codereview.webrtc.org/2456363002/diff/60001/webrtc/api/call/audio_sta...
File webrtc/api/call/audio_state.h (right):

https://codereview.webrtc.org/2456363002/diff/60001/webrtc/api/call/audio_sta...
webrtc/api/call/audio_state.h:19: class AudioDeviceModule;
On 2016/11/09 10:51:44, the sun wrote:
> Please remove - not needed anymore.

Done in https://codereview.webrtc.org/2491483002/!

Powered by Google App Engine
This is Rietveld 408576698