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

Issue 1304973005: Refactor AudioParameters member setting. (Closed)

Created:
5 years, 3 months ago by ajm
Modified:
5 years, 3 months ago
CC:
avayvod+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, imcheng+watch_chromium.org, isheriff+watch_chromium.org, jasonroberts+watch_google.com, mcasas+watch_chromium.org, miu+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, phoglund+watch_chromium.org, posciak+watch_chromium.org, tnakamura+watch_chromium.org, wjia+watch_chromium.org, xjz+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor AudioParameters member setting. Permit AudioParameters members to be set individually. Allows us to: - Cut back to the one non-default constructor which is frequently used. - Remove a bunch of boilerplate in the common case of updating one member. - Make adding future optional members (e.g. mic_positions) transparent to most callers. Maintain the Reset method but remove the channels parameter to have it mirror the constructor. Make it clear that channels_ is only required to be set explicitly with CHANNEL_LAYOUT_DISCRETE. BUG=497001 Committed: https://crrev.com/2e2f1c71bec505f3ae9d718dd8e875fedd4962e7 Cr-Commit-Position: refs/heads/master@{#347781}

Patch Set 1 #

Patch Set 2 : Cross-platform fixes. #

Patch Set 3 : More cross-platform. #

Total comments: 11

Patch Set 4 : dalecurtis comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -313 lines) Patch
M chrome/browser/copresence/chrome_whispernet_client_browsertest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/media/webrtc_browsertest_audio.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chromecast/renderer/media/chromecast_media_renderer_factory.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M components/audio_modem/audio_recorder_impl.cc View 1 chunk +1 line, -6 lines 0 comments Download
M content/browser/media/media_internals_unittest.cc View 2 chunks +15 lines, -12 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_renderer_host.cc View 1 chunk +3 lines, -8 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host_unittest.cc View 1 chunk +5 lines, -15 lines 0 comments Download
M content/browser/speech/speech_recognizer_impl.cc View 1 2 3 3 chunks +3 lines, -8 lines 0 comments Download
M content/common/media/media_param_traits.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M content/renderer/media/audio_renderer_mixer_manager_unittest.cc View 2 chunks +4 lines, -10 lines 0 comments Download
M content/renderer/media/speech_recognition_audio_sink_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/media/webaudio_capturer_source.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M content/renderer/media/webrtc_audio_capturer.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M content/renderer/media/webrtc_audio_renderer.cc View 2 chunks +6 lines, -8 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_renderer.cc View 1 chunk +3 lines, -8 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_source_provider.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_source_provider_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_track_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_platform_audio_input.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M media/audio/alsa/audio_manager_alsa.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M media/audio/android/audio_android_unittest.cc View 1 2 3 3 chunks +7 lines, -23 lines 0 comments Download
M media/audio/android/audio_manager_android.cc View 1 2 chunks +5 lines, -6 lines 0 comments Download
M media/audio/audio_manager_base.cc View 1 chunk +3 lines, -9 lines 0 comments Download
M media/audio/audio_output_device_unittest.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M media/audio/audio_output_resampler.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M media/audio/audio_parameters.h View 1 2 3 2 chunks +39 lines, -17 lines 2 comments Download
M media/audio/audio_parameters.cc View 2 chunks +20 lines, -53 lines 0 comments Download
M media/audio/audio_parameters_unittest.cc View 1 chunk +3 lines, -12 lines 0 comments Download
M media/audio/cras/audio_manager_cras.cc View 1 2 chunks +7 lines, -6 lines 0 comments Download
M media/audio/fake_audio_manager.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M media/audio/mac/audio_manager_mac.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M media/audio/pulse/audio_manager_pulse.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M media/audio/win/audio_low_latency_input_win_unittest.cc View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M media/audio/win/audio_manager_win.cc View 1 2 chunks +9 lines, -11 lines 0 comments Download
M media/audio/win/core_audio_util_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/base/audio_buffer_converter.cc View 2 chunks +1 line, -1 line 0 comments Download
M media/base/audio_buffer_converter_unittest.cc View 1 chunk +4 lines, -7 lines 0 comments Download
M media/base/audio_converter_unittest.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M media/base/channel_mixer_unittest.cc View 1 chunk +8 lines, -15 lines 0 comments Download
M media/cast/test/fake_media_source.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M media/renderers/audio_renderer_impl.cc View 2 chunks +4 lines, -10 lines 0 comments Download

Messages

Total messages: 38 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304973005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304973005/1
5 years, 3 months ago (2015-09-04 05:25:34 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/111952) cast_shell_android on ...
5 years, 3 months ago (2015-09-04 05:38:28 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304973005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304973005/20001
5 years, 3 months ago (2015-09-04 06:06:59 UTC) #6
ajm
5 years, 3 months ago (2015-09-04 06:18:18 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/50926)
5 years, 3 months ago (2015-09-04 06:21:34 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304973005/2 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304973005/2
5 years, 3 months ago (2015-09-04 06:46:16 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/65136)
5 years, 3 months ago (2015-09-04 07:00:56 UTC) #14
DaleCurtis
Nice cleanup! Thanks for doing this! I like everything except for the discrete channel calling ...
5 years, 3 months ago (2015-09-04 17:03:39 UTC) #15
Charlie
Audio modem changes LGTM.
5 years, 3 months ago (2015-09-04 17:51:47 UTC) #17
ajm
Tommi, let us know if you can think of anything better than set_channels_for_discrete(). https://codereview.chromium.org/1304973005/diff/2/chrome/browser/media/webrtc_browsertest_audio.cc File ...
5 years, 3 months ago (2015-09-04 19:02:53 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304973005/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304973005/50001
5 years, 3 months ago (2015-09-04 19:03:38 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-04 20:18:36 UTC) #22
tommi (sloooow) - chröme
lgtm. nice cleanup! https://codereview.chromium.org/1304973005/diff/2/chrome/browser/media/webrtc_browsertest_audio.cc File chrome/browser/media/webrtc_browsertest_audio.cc (right): https://codereview.chromium.org/1304973005/diff/2/chrome/browser/media/webrtc_browsertest_audio.cc#newcode84 chrome/browser/media/webrtc_browsertest_audio.cc:84: file_parameters->set_channels_for_discrete(wav_audio_handler->num_channels()); On 2015/09/04 19:02:53, ajm wrote: ...
5 years, 3 months ago (2015-09-05 09:49:58 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304973005/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304973005/50001
5 years, 3 months ago (2015-09-05 10:23:24 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/96972)
5 years, 3 months ago (2015-09-05 10:34:58 UTC) #28
ajm
https://codereview.chromium.org/1304973005/diff/50001/media/audio/audio_parameters.h File media/audio/audio_parameters.h (right): https://codereview.chromium.org/1304973005/diff/50001/media/audio/audio_parameters.h#newcode85 media/audio/audio_parameters.h:85: int sample_rate, On 2015/09/05 09:49:58, tommi wrote: > this ...
5 years, 3 months ago (2015-09-06 07:24:14 UTC) #29
ajm
I need some OWNER approvals for minor changes. PTAL. ckehoe: chrome/browser/copresence/chrome_whispernet_client_browsertest.cc (in addition to the ...
5 years, 3 months ago (2015-09-06 07:34:45 UTC) #31
jam
On 2015/09/06 07:34:45, ajm wrote: > I need some OWNER approvals for minor changes. PTAL. ...
5 years, 3 months ago (2015-09-08 16:54:34 UTC) #32
dcheng
ipc changes lgtm
5 years, 3 months ago (2015-09-08 18:22:03 UTC) #33
Charlie
Changes to ChromeWhispernetClientTest LGTM.
5 years, 3 months ago (2015-09-08 18:51:45 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1304973005/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1304973005/50001
5 years, 3 months ago (2015-09-08 19:26:44 UTC) #36
commit-bot: I haz the power
Committed patchset #4 (id:50001)
5 years, 3 months ago (2015-09-08 20:33:03 UTC) #37
commit-bot: I haz the power
5 years, 3 months ago (2015-09-08 20:33:50 UTC) #38
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2e2f1c71bec505f3ae9d718dd8e875fedd4962e7
Cr-Commit-Position: refs/heads/master@{#347781}

Powered by Google App Engine
This is Rietveld 408576698