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

Issue 9655018: Make AudioParameters a class instead of a struct (Closed)

Created:
8 years, 9 months ago by vrk (LEFT CHROMIUM)
Modified:
8 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Make AudioParameters a class instead of a struct Also collapses some long parameter lists into AudioParameters and moves some of the hardcoded values (e.g. 16 bit audio in AudioDevice) to more appropriate locations. BUG=115902 TEST=manually testing everything works out Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=128054

Patch Set 1 #

Patch Set 2 : Fix tests #

Total comments: 43

Patch Set 3 : Response to CR #

Patch Set 4 : Rebase ToT #

Patch Set 5 : Fix win/mac compile #

Patch Set 6 : Fix DEPS #

Patch Set 7 : . #

Total comments: 4

Patch Set 8 : Rebase ToT #

Patch Set 9 : Response to CR #

Patch Set 10 : Fix android compile #

Patch Set 11 : Fix copyright years #

Unified diffs Side-by-side diffs Delta from patch set Stats (+692 lines, -606 lines) Patch
M content/browser/renderer_host/media/audio_input_renderer_host.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_renderer_host.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host_unittest.cc View 1 2 3 1 chunk +7 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -7 lines 0 comments Download
M content/common/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/common/media/audio_messages.h View 1 2 3 4 5 2 chunks +1 line, -11 lines 0 comments Download
A content/common/media/audio_param_traits.h View 1 2 3 4 5 6 7 8 1 chunk +26 lines, -0 lines 0 comments Download
A content/common/media/audio_param_traits.cc View 1 2 3 4 5 1 chunk +46 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -5 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/media/audio_device.h View 1 2 3 1 chunk +2 lines, -8 lines 0 comments Download
M content/renderer/media/audio_device.cc View 1 2 3 4 5 6 7 4 chunks +10 lines, -24 lines 0 comments Download
M content/renderer/media/audio_device_thread.cc View 1 2 2 chunks +6 lines, -7 lines 0 comments Download
M content/renderer/media/audio_hardware.h View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M content/renderer/media/audio_hardware.cc View 1 2 4 chunks +12 lines, -12 lines 0 comments Download
M content/renderer/media/audio_input_device.h View 1 2 3 2 chunks +8 lines, -6 lines 0 comments Download
M content/renderer/media/audio_input_device.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -20 lines 0 comments Download
M content/renderer/media/audio_renderer_impl.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -13 lines 0 comments Download
M content/renderer/media/render_audiosourceprovider.h View 1 2 1 chunk +3 lines, -6 lines 0 comments Download
M content/renderer/media/render_audiosourceprovider.cc View 1 2 2 chunks +8 lines, -15 lines 0 comments Download
M content/renderer/media/renderer_webaudiodevice_impl.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/media/renderer_webaudiodevice_impl.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_impl.h View 1 2 2 chunks +18 lines, -12 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_impl.cc View 1 2 18 chunks +64 lines, -66 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_unittest.cc View 1 2 3 3 chunks +15 lines, -15 lines 0 comments Download
M content/renderer/pepper/pepper_platform_audio_input_impl.h View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M content/renderer/pepper/pepper_platform_audio_input_impl.cc View 1 2 3 3 chunks +8 lines, -11 lines 0 comments Download
M content/renderer/pepper/pepper_platform_audio_output_impl.h View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M content/renderer/pepper/pepper_platform_audio_output_impl.cc View 1 2 3 3 chunks +16 lines, -16 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 1 chunk +46 lines, -7 lines 0 comments Download
M content/test/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/test/webrtc_audio_device_test.h View 1 2 3 chunks +7 lines, -6 lines 0 comments Download
M content/test/webrtc_audio_device_test.cc View 1 2 3 2 chunks +11 lines, -10 lines 0 comments Download
M media/audio/android/audio_manager_android.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M media/audio/audio_input_controller.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M media/audio/audio_input_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/audio/audio_input_volume_unittest.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M media/audio/audio_manager_base.cc View 1 2 3 3 chunks +7 lines, -7 lines 0 comments Download
M media/audio/audio_output_dispatcher.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M media/audio/audio_parameters.h View 1 2 2 chunks +28 lines, -14 lines 0 comments Download
M media/audio/audio_parameters.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +49 lines, -33 lines 0 comments Download
M media/audio/audio_parameters_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +20 lines, -20 lines 0 comments Download
M media/audio/audio_util.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -6 lines 0 comments Download
M media/audio/audio_util.cc View 1 2 3 4 5 6 7 5 chunks +13 lines, -13 lines 0 comments Download
M media/audio/fake_audio_input_stream.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M media/audio/fake_audio_output_stream.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/audio/fake_audio_output_stream.cc View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M media/audio/linux/alsa_input.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M media/audio/linux/alsa_input.cc View 1 2 3 9 chunks +33 lines, -34 lines 0 comments Download
M media/audio/linux/alsa_output.cc View 1 2 3 4 5 6 7 5 chunks +25 lines, -24 lines 0 comments Download
M media/audio/linux/alsa_output_unittest.cc View 1 2 3 3 chunks +7 lines, -7 lines 0 comments Download
M media/audio/linux/audio_manager_linux.cc View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M media/audio/mac/audio_input_mac.cc View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M media/audio/mac/audio_low_latency_input_mac.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/audio/mac/audio_low_latency_input_mac.cc View 1 2 3 4 4 chunks +8 lines, -8 lines 0 comments Download
M media/audio/mac/audio_low_latency_output_mac.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/audio/mac/audio_low_latency_output_mac.cc View 1 2 3 4 3 chunks +7 lines, -7 lines 0 comments Download
M media/audio/mac/audio_manager_mac.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M media/audio/mac/audio_output_mac.cc View 1 2 3 4 3 chunks +9 lines, -9 lines 0 comments Download
M media/audio/pulse/pulse_output.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M media/audio/simple_sources_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/audio/win/audio_low_latency_input_win.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/audio/win/audio_low_latency_input_win.cc View 1 2 3 4 4 chunks +9 lines, -9 lines 0 comments Download
M media/audio/win/audio_low_latency_output_win.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M media/audio/win/audio_low_latency_output_win.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +9 lines, -9 lines 0 comments Download
M media/audio/win/audio_manager_win.cc View 1 2 3 4 4 chunks +6 lines, -6 lines 0 comments Download
M media/audio/win/wavein_input_win.cc View 1 2 3 4 5 1 chunk +5 lines, -5 lines 0 comments Download
M media/audio/win/waveout_output_win.cc View 1 2 3 4 1 chunk +8 lines, -8 lines 0 comments Download
M media/base/audio_renderer_sink.h View 1 chunk +1 line, -4 lines 0 comments Download
M media/base/channel_layout.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -9 lines 0 comments Download
M media/ffmpeg/ffmpeg_common.cc View 1 2 1 chunk +8 lines, -8 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
vrk (LEFT CHROMIUM)
crogers: WebAudio stuff tommi: WebRTC stuff enal: everything scherkus: FYI! everyone: The biggest effect of ...
8 years, 9 months ago (2012-03-09 20:59:31 UTC) #1
scherkus (not reviewing)
precursory ell gee tee em modulo nits I'll defer to the rest of the gang ...
8 years, 9 months ago (2012-03-09 21:48:59 UTC) #2
Chris Rogers
Hi Victoria, I had a quick look through, and the idea to switch to using ...
8 years, 9 months ago (2012-03-10 00:28:48 UTC) #3
tommi (sloooow) - chröme
all sorts of excellent! I'll wait for the next patch set with my el gutem. ...
8 years, 9 months ago (2012-03-10 10:11:32 UTC) #4
Chris Rogers
https://chromiumcodereview.appspot.com/9655018/diff/2001/media/audio/audio_parameters.h File media/audio/audio_parameters.h (right): https://chromiumcodereview.appspot.com/9655018/diff/2001/media/audio/audio_parameters.h#newcode36 media/audio/audio_parameters.h:36: int samples_per_second, int bits_per_sample, It's incorrect to change the ...
8 years, 9 months ago (2012-03-12 20:07:13 UTC) #5
enal1
LGTM, assuming you reach consensus on terminology. I'll also ned to change AudioParameters soon, it's ...
8 years, 9 months ago (2012-03-13 21:16:09 UTC) #6
vrk (LEFT CHROMIUM)
Thanks everyone! I followed the suggestions and rebased to ToT. I also: - Removed "immutable" ...
8 years, 9 months ago (2012-03-16 18:30:41 UTC) #7
tommi (sloooow) - chröme
lgtm. great job! https://chromiumcodereview.appspot.com/9655018/diff/2001/media/audio/audio_parameters.h File media/audio/audio_parameters.h (right): https://chromiumcodereview.appspot.com/9655018/diff/2001/media/audio/audio_parameters.h#newcode52 media/audio/audio_parameters.h:52: Format format() const { return format_; ...
8 years, 9 months ago (2012-03-16 20:57:39 UTC) #8
Chris Rogers
Victoria, wow that's a lot of files - thanks for the massive cleanup! LGTM
8 years, 9 months ago (2012-03-16 21:37:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vrk@chromium.org/9655018/15098
8 years, 9 months ago (2012-03-19 21:40:27 UTC) #10
commit-bot: I haz the power
Presubmit check for 9655018-15098 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 9 months ago (2012-03-19 21:41:32 UTC) #11
vrk (LEFT CHROMIUM)
jam: OWNERS review for content (one thing in particular: not sure if I put the ...
8 years, 9 months ago (2012-03-19 23:42:38 UTC) #12
jam
why move from using the macros to do IPC serialization to doing it manually? the ...
8 years, 9 months ago (2012-03-20 15:29:45 UTC) #13
jam
http://codereview.chromium.org/9655018/diff/15098/content/common/DEPS File content/common/DEPS (right): http://codereview.chromium.org/9655018/diff/15098/content/common/DEPS#newcode2 content/common/DEPS:2: "+media/base/channel_layout.h", nit: just do "+media/base"
8 years, 9 months ago (2012-03-20 15:30:19 UTC) #14
jam
On 2012/03/20 15:29:45, John Abd-El-Malek wrote: > why move from using the macros to do ...
8 years, 9 months ago (2012-03-20 15:50:52 UTC) #15
jam
On 2012/03/20 15:50:52, John Abd-El-Malek wrote: > On 2012/03/20 15:29:45, John Abd-El-Malek wrote: > > ...
8 years, 9 months ago (2012-03-20 15:51:16 UTC) #16
jam
http://codereview.chromium.org/9655018/diff/15098/content/common/media/audio_param_traits.h File content/common/media/audio_param_traits.h (right): http://codereview.chromium.org/9655018/diff/15098/content/common/media/audio_param_traits.h#newcode16 content/common/media/audio_param_traits.h:16: // These datatypes are used by utility_messages.h and render_messages.h. ...
8 years, 9 months ago (2012-03-20 15:58:47 UTC) #17
vrk (LEFT CHROMIUM)
Thanks jam! On 2012/03/20 15:50:52, John Abd-El-Malek wrote: > All the audio code though in ...
8 years, 9 months ago (2012-03-21 00:35:24 UTC) #18
vrk (LEFT CHROMIUM)
Whoops, sent the wrong CL link: https://chromiumcodereview.appspot.com/9805001/
8 years, 9 months ago (2012-03-21 00:36:32 UTC) #19
jam
lgtm, thanks
8 years, 9 months ago (2012-03-21 04:31:01 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vrk@chromium.org/9655018/46001
8 years, 9 months ago (2012-03-21 17:30:02 UTC) #21
commit-bot: I haz the power
Try job failure for 9655018-46001 (retry) on android for steps "Compile, build". It's a second ...
8 years, 9 months ago (2012-03-21 17:56:00 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vrk@chromium.org/9655018/56001
8 years, 9 months ago (2012-03-21 20:02:14 UTC) #23
commit-bot: I haz the power
8 years, 9 months ago (2012-03-21 20:03:49 UTC) #24
Failed to request the patch to try. Please note that binary filesare still
unsupported at the moment, this is being worked on.

Thanks for your patience.

HTTP Error 500: 
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>500 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered an error and could not complete your request.<p>If
the problem persists, please <A
HREF="http://code.google.com/appengine/community.html">report</A> your problem
and mention this error message and the query that caused it.</h2>
<h2></h2>
</body></html>

Powered by Google App Engine
This is Rietveld 408576698