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

Issue 2712743004: Support 4 channel mic in Windows Core Audio (Closed)

Created:
3 years, 10 months ago by jens.nielsen
Modified:
3 years, 9 months ago
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), Andrew MacDonald, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, qiang.lu, niklas.enbom, sdk-team_agora.io, peah-webrtc, minyue-webrtc, the sun, aleloi
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Support 4 channel mic in Windows Core Audio BUG=webrtc:7220 Review-Url: https://codereview.webrtc.org/2712743004 Cr-Commit-Position: refs/heads/master@{#16940} Committed: https://chromium.googlesource.com/external/webrtc/+/228c268065bd74d8fc8bd92681d8f375a9f5781a

Patch Set 1 #

Patch Set 2 : Fix formatting #

Total comments: 53

Patch Set 3 : Changes after code review comments #

Total comments: 4

Patch Set 4 : Fix compile error on mac #

Total comments: 2

Patch Set 5 : Follow up last comments and more cleanup #

Patch Set 6 : Fix compile error on linux/mac #

Patch Set 7 : Fix another non-Windows build error #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+426 lines, -114 lines) Patch
M AUTHORS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/audio/utility/audio_frame_operations.h View 1 2 3 4 5 2 chunks +40 lines, -0 lines 0 comments Download
M webrtc/audio/utility/audio_frame_operations.cc View 1 2 2 chunks +88 lines, -1 line 0 comments Download
M webrtc/audio/utility/audio_frame_operations_unittest.cc View 1 2 3 4 9 chunks +173 lines, -45 lines 0 comments Download
M webrtc/modules/audio_device/win/audio_device_core_win.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_device/win/audio_device_core_win.cc View 7 chunks +29 lines, -22 lines 0 comments Download
M webrtc/voice_engine/utility.cc View 1 2 3 4 5 1 chunk +12 lines, -6 lines 2 comments Download
M webrtc/voice_engine/utility_unittest.cc View 1 2 3 4 5 6 5 chunks +82 lines, -39 lines 0 comments Download

Messages

Total messages: 53 (24 generated)
jens.nielsen
Hi Patch for supporting 4 channel microphone on Windows ready for review Best regards Jens ...
3 years, 10 months ago (2017-02-23 16:29:19 UTC) #3
henrika_webrtc
+henrik.lundin for changes related to AudioFrame
3 years, 10 months ago (2017-02-24 08:14:21 UTC) #5
henrika_webrtc
Thanks for doing work in this area. I like it! Focusing on the Windows specific ...
3 years, 10 months ago (2017-02-24 08:53:48 UTC) #6
hlundin-webrtc
Thanks for the patch! See comments inline. https://codereview.webrtc.org/2712743004/diff/20001/webrtc/audio/utility/audio_frame_operations.cc File webrtc/audio/utility/audio_frame_operations.cc (right): https://codereview.webrtc.org/2712743004/diff/20001/webrtc/audio/utility/audio_frame_operations.cc#newcode117 webrtc/audio/utility/audio_frame_operations.cc:117: void AudioFrameOperations::QuadToMono(const ...
3 years, 10 months ago (2017-02-24 09:46:36 UTC) #7
aleloi
Nice work! Some drive-by comments. https://codereview.webrtc.org/2712743004/diff/20001/webrtc/audio/utility/audio_frame_operations.cc File webrtc/audio/utility/audio_frame_operations.cc (right): https://codereview.webrtc.org/2712743004/diff/20001/webrtc/audio/utility/audio_frame_operations.cc#newcode122 webrtc/audio/utility/audio_frame_operations.cc:122: src_audio[4 * i + ...
3 years, 10 months ago (2017-02-24 10:39:32 UTC) #9
jens.nielsen
Thank you! I will upload a new patch set as soon as I have addressed ...
3 years, 10 months ago (2017-02-24 11:11:19 UTC) #10
henrika_webrtc
My recommendation is to start using WAVEFORMATEXTENSIBLE for the input side to make it more ...
3 years, 10 months ago (2017-02-24 11:15:38 UTC) #11
aleloi
https://codereview.webrtc.org/2712743004/diff/20001/webrtc/audio/utility/audio_frame_operations.cc File webrtc/audio/utility/audio_frame_operations.cc (right): https://codereview.webrtc.org/2712743004/diff/20001/webrtc/audio/utility/audio_frame_operations.cc#newcode122 webrtc/audio/utility/audio_frame_operations.cc:122: src_audio[4 * i + 2] + src_audio[4 * i ...
3 years, 10 months ago (2017-02-24 13:32:52 UTC) #12
jens.nielsen
Hi all Thank you again for your comments, I have uploaded a new patch set ...
3 years, 10 months ago (2017-02-24 14:55:49 UTC) #13
henrika_webrtc
It is not clear to me if you are in a bad state now or ...
3 years, 10 months ago (2017-02-24 15:17:07 UTC) #14
aleloi
On 2017/02/24 15:17:07, henrika_webrtc wrote: > It is not clear to me if you are ...
3 years, 10 months ago (2017-02-24 15:23:34 UTC) #15
henrika_webrtc
The Windows parts start to look OK. Can you also add some information in the ...
3 years, 10 months ago (2017-02-24 15:25:03 UTC) #16
jens.nielsen
Hi again Sorry for silly copy-paste thing causing build error on mac, this should be ...
3 years, 10 months ago (2017-02-24 16:41:30 UTC) #17
hlundin-webrtc
LGTM (with one comment) on webrtc/audio/utility/* and webrtc/voice_engine/*. Although I have no formal owner's rights ...
3 years, 9 months ago (2017-02-27 07:52:03 UTC) #22
henrika_webrtc
LGTM. Thanks for doing this!
3 years, 9 months ago (2017-02-27 10:09:21 UTC) #23
henrika_webrtc
https://codereview.webrtc.org/2712743004/diff/40001/webrtc/modules/audio_device/win/audio_device_core_win.cc File webrtc/modules/audio_device/win/audio_device_core_win.cc (right): https://codereview.webrtc.org/2712743004/diff/40001/webrtc/modules/audio_device/win/audio_device_core_win.cc#newcode2595 webrtc/modules/audio_device/win/audio_device_core_win.cc:2595: (WAVEFORMATEX*)&Wfx, On 2017/02/24 16:41:30, jens.nielsen wrote: > On 2017/02/24 ...
3 years, 9 months ago (2017-02-27 10:09:39 UTC) #24
jens.nielsen
Hi all This should hopefully be the final patch set for this CL. Thanks again! ...
3 years, 9 months ago (2017-02-27 13:28:15 UTC) #25
hlundin-webrtc
Thanks! Still LGTM. Let's give The Sun and Aleloi until tomorrow morning to comment.
3 years, 9 months ago (2017-02-28 10:16:21 UTC) #26
aleloi2
Oh, sorry. LGTM!
3 years, 9 months ago (2017-03-01 03:23:28 UTC) #28
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/2712743004/80001
3 years, 9 months ago (2017-03-01 10:05:29 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: mac_baremetal on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_baremetal/builds/19406)
3 years, 9 months ago (2017-03-01 10:12:39 UTC) #33
hlundin-webrtc
On 2017/03/01 10:12:39, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 9 months ago (2017-03-01 10:16:51 UTC) #34
jens.nielsen
Hi Alright, new patch sets uploaded and now also dry run passed (didn't know I ...
3 years, 9 months ago (2017-03-01 12:57:29 UTC) #43
hlundin-webrtc
On 2017/03/01 12:57:29, jens.nielsen wrote: > Hi > > Alright, new patch sets uploaded and ...
3 years, 9 months ago (2017-03-01 13:08:13 UTC) #44
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/2712743004/120001
3 years, 9 months ago (2017-03-01 13:08:28 UTC) #47
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/external/webrtc/+/228c268065bd74d8fc8bd92681d8f375a9f5781a
3 years, 9 months ago (2017-03-01 13:11:31 UTC) #50
jens.nielsen
And finally it got through, thanks! Now all that's left is to close the bug ...
3 years, 9 months ago (2017-03-01 13:43:32 UTC) #51
the sun
https://codereview.webrtc.org/2712743004/diff/120001/webrtc/voice_engine/utility.cc File webrtc/voice_engine/utility.cc (right): https://codereview.webrtc.org/2712743004/diff/120001/webrtc/voice_engine/utility.cc#newcode44 webrtc/voice_engine/utility.cc:44: int16_t downsampled_audio[AudioFrame::kMaxDataSizeSamples]; nit: this isn't downsampled, it is downmixed.
3 years, 9 months ago (2017-03-02 00:57:29 UTC) #52
hlundin-webrtc
3 years, 9 months ago (2017-03-02 11:54:12 UTC) #53
Message was sent while issue was closed.
https://codereview.webrtc.org/2712743004/diff/120001/webrtc/voice_engine/util...
File webrtc/voice_engine/utility.cc (right):

https://codereview.webrtc.org/2712743004/diff/120001/webrtc/voice_engine/util...
webrtc/voice_engine/utility.cc:44: int16_t
downsampled_audio[AudioFrame::kMaxDataSizeSamples];
On 2017/03/02 00:57:29, the sun wrote:
> nit: this isn't downsampled, it is downmixed.

Fixing this in https://codereview.webrtc.org/2721123005.

Powered by Google App Engine
This is Rietveld 408576698