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

Issue 9221010: Adds support for 16kHz input sample rate and mono channel config. in WebRTC. (Closed)

Created:
8 years, 11 months ago by henrika (OOO until Aug 14)
Modified:
8 years, 11 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, acolwell+watch_chromium.org, jam, annacc+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, vrk (LEFT CHROMIUM), ihf+watch_chromium.org
Visibility:
Public.

Description

Adds support for 16kHz input sample rate and mono channel config. in WebRTC. BUG=WebRTC demo doesn't work with Logitech 9000 as microphone TEST=content_unittest --gtest_filter=WebRTCAudioDeviceTest* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=118291

Patch Set 1 #

Total comments: 21

Patch Set 2 : Added 32kHz support and did modifications based on review by Tommi #

Patch Set 3 : Adding 16 and 32kHz input support on Mac OS X #

Total comments: 8

Patch Set 4 : Minor changes based on input from John and Andrew #

Patch Set 5 : Used uint32 instead of int for IPC #

Patch Set 6 : Fixed building error on Linux and Mac #

Patch Set 7 : Removed more size_t #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -45 lines) Patch
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/media/audio_hardware.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/media/audio_hardware.cc View 1 2 3 4 5 2 chunks +15 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_impl.cc View 1 2 8 chunks +20 lines, -23 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_unittest.cc View 1 2 3 4 5 6 4 chunks +16 lines, -4 lines 0 comments Download
M content/test/webrtc_audio_device_test.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M content/test/webrtc_audio_device_test.cc View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M media/audio/audio_util.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M media/audio/audio_util.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M media/audio/win/audio_low_latency_input_win.h View 1 2 3 4 2 chunks +9 lines, -1 line 0 comments Download
M media/audio/win/audio_low_latency_input_win.cc View 1 2 3 4 4 chunks +31 lines, -17 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
henrika (OOO until Aug 14)
The problem I am solving here is that some Web cameras only support recording in ...
8 years, 11 months ago (2012-01-17 09:48:54 UTC) #1
henrika (OOO until Aug 14)
After discussions with Tommi we decided that I should add support for 32kHz (recording) in ...
8 years, 11 months ago (2012-01-17 11:20:29 UTC) #2
tommi (sloooow) - chröme
looks good overall. Mostly nits about "GetChannels->GetChannelCount" since the return value is a count, not ...
8 years, 11 months ago (2012-01-17 12:01:08 UTC) #3
henrika (OOO until Aug 14)
Did changes proposed by Tommi and added support for 32kHz input as well. http://codereview.chromium.org/9221010/diff/1/content/browser/renderer_host/render_message_filter.h File ...
8 years, 11 months ago (2012-01-17 12:54:59 UTC) #4
tommi (sloooow) - chröme
lgtm
8 years, 11 months ago (2012-01-17 13:01:58 UTC) #5
henrika (OOO until Aug 14)
John: would appreciate a quick check by you as an owner in content/browser. Only trivial ...
8 years, 11 months ago (2012-01-18 16:14:42 UTC) #6
scherkus (not reviewing)
LGTM w/ nits channel count should be fine (as opposed to channel layout enum) as ...
8 years, 11 months ago (2012-01-18 18:19:37 UTC) #7
jam
content/browser and content/common lgtm with nit http://codereview.chromium.org/9221010/diff/14001/content/common/view_messages.h File content/common/view_messages.h (right): http://codereview.chromium.org/9221010/diff/14001/content/common/view_messages.h#newcode697 content/common/view_messages.h:697: size_t /* channels ...
8 years, 11 months ago (2012-01-18 18:44:37 UTC) #8
henrika (OOO until Aug 14)
Did final changes based on review input. http://codereview.chromium.org/9221010/diff/14001/content/common/view_messages.h File content/common/view_messages.h (right): http://codereview.chromium.org/9221010/diff/14001/content/common/view_messages.h#newcode697 content/common/view_messages.h:697: size_t /* ...
8 years, 11 months ago (2012-01-19 09:42:24 UTC) #9
scherkus (not reviewing)
8 years, 11 months ago (2012-01-19 17:43:01 UTC) #10
On 2012/01/19 09:42:24, henrika wrote:
> Did final changes based on review input.
> 
>
http://codereview.chromium.org/9221010/diff/14001/content/common/view_messages.h
> File content/common/view_messages.h (right):
> 
>
http://codereview.chromium.org/9221010/diff/14001/content/common/view_message...
> content/common/view_messages.h:697: size_t /* channels */)
> I will change to int instead.
> 
>
http://codereview.chromium.org/9221010/diff/14001/content/renderer/media/audi...
> File content/renderer/media/audio_hardware.cc (right):
> 
>
http://codereview.chromium.org/9221010/diff/14001/content/renderer/media/audi...
> content/renderer/media/audio_hardware.cc:57: new
> ViewHostMsg_GetHardwareInputChannelCount(&channels));
> On 2012/01/18 18:19:38, scherkus wrote:
> > indent
> 
> Done.
> 
>
http://codereview.chromium.org/9221010/diff/14001/content/renderer/media/webr...
> File content/renderer/media/webrtc_audio_device_impl.cc (right):
> 
>
http://codereview.chromium.org/9221010/diff/14001/content/renderer/media/webr...
> content/renderer/media/webrtc_audio_device_impl.cc:369: input_sample_rate !=
> 32000 && input_sample_rate != 16000) {
> You might be referring to "First patch works for Windows only. Mac OS X is
> next." What I meant to describe was that I started out adding support for
> Windows and then added Mac OSX, in the same CL. Might not have been clear. 
> 
> Can I rewrite old comments?

Not that I'm aware of!

In the end it's the CL description that really matters so I wouldn't worry about
it :)

>
http://codereview.chromium.org/9221010/diff/14001/content/renderer/media/webr...
> File content/renderer/media/webrtc_audio_device_unittest.cc (right):
> 
>
http://codereview.chromium.org/9221010/diff/14001/content/renderer/media/webr...
> content/renderer/media/webrtc_audio_device_unittest.cc:52: :
> output_rate_(output_rate),
> On 2012/01/18 18:19:38, scherkus wrote:
> > indent by 2 more spaces
> 
> Done.

Powered by Google App Engine
This is Rietveld 408576698