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

Issue 481193003: Remove AudioBuffersState usage in Chromium (Closed)

Created:
6 years, 4 months ago by acolwell GONE FROM CHROMIUM
Modified:
6 years, 2 months ago
Reviewers:
rkc, palmer, DaleCurtis
CC:
chromium-reviews, hclam+watch_chromium.org, imcheng+watch_chromium.org, posciak+watch_chromium.org, avayvod+watch_chromium.org, jam, mcasas+watch_chromium.org, mikhal+watch_chromium.org, pwestin+watch_google.com, feature-media-reviews_chromium.org, hguihot+watch_chromium.org, darin-cc_chromium.org, jasonroberts+watch_google.com, wjia+watch_chromium.org, hubbe+watch_chromium.org, miu+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Remove AudioBuffersState class The AudioBuffersState object doesn't appear to be necessary anymore. Most code either completely ignores this information or doesn't actually care about the difference between pending_bytes and hardware_delay_bytes. Also usually only one of the 2 fields was actually being used at a time. This change removes the class and simply uses an int that represent the total number of delay bytes. BUG=125685 Committed: https://crrev.com/c0a9787ba21a78aff69d863fb545e85981ac4dc1 Cr-Commit-Position: refs/heads/master@{#297220}

Patch Set 1 : Original changes from https://codereview.chromium.org/467833002/ #

Patch Set 2 : Rebase #

Patch Set 3 : Add back AudioBuffersState so that a private browser extension still builds. #

Patch Set 4 : Fix silly build buster #

Total comments: 2

Patch Set 5 : Fix GN builds #

Patch Set 6 : Address CR comment #

Patch Set 7 : Remove AudioBufferState since ledger code is no longer built in Chrome. #

Total comments: 4

Patch Set 8 : Change total_bytes_delay to uint32. #

Patch Set 9 : Rebase #

Patch Set 10 : Fix audio muter build buster. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -193 lines) Patch
M components/copresence/mediums/audio/audio_player.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M components/copresence/mediums/audio/audio_player.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M components/copresence/mediums/audio/audio_player_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/media/capture/web_contents_audio_muter.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/audio_sync_reader.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/common/media/audio_messages.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/audio/BUILD.gn View 1 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M media/audio/alsa/alsa_output.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M media/audio/alsa/alsa_output.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M media/audio/alsa/alsa_output_unittest.cc View 1 chunk +1 line, -4 lines 0 comments Download
M media/audio/android/audio_android_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M media/audio/android/opensles_output.cc View 1 chunk +1 line, -1 line 0 comments Download
D media/audio/audio_buffers_state.h View 3 4 5 6 1 chunk +0 lines, -32 lines 0 comments Download
D media/audio/audio_buffers_state.cc View 3 4 5 6 1 chunk +0 lines, -20 lines 0 comments Download
M media/audio/audio_device_thread.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -3 lines 0 comments Download
M media/audio/audio_io.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -5 lines 0 comments Download
M media/audio/audio_low_latency_input_output_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -11 lines 0 comments Download
M media/audio/audio_output_controller.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M media/audio/audio_output_controller.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -4 lines 0 comments Download
M media/audio/audio_output_controller_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/audio_output_proxy_unittest.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -2 lines 0 comments Download
M media/audio/audio_output_resampler.h View 1 chunk +2 lines, -2 lines 0 comments Download
M media/audio/audio_output_resampler.cc View 1 2 3 4 5 6 7 8 5 chunks +10 lines, -10 lines 0 comments Download
M media/audio/cras/cras_unified.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/audio/fake_audio_consumer_unittest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M media/audio/fake_audio_output_stream.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/mac/audio_auhal_mac.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M media/audio/mock_audio_source_callback.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M media/audio/pulse/pulse_output.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/simple_sources.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M media/audio/simple_sources.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M media/audio/simple_sources_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M media/audio/sounds/audio_stream_handler.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M media/audio/virtual_audio_input_stream_unittest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M media/audio/virtual_audio_output_stream.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/win/audio_low_latency_output_win.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -6 lines 0 comments Download
M media/audio/win/audio_low_latency_output_win_unittest.cc View 1 2 3 4 5 6 7 5 chunks +6 lines, -15 lines 0 comments Download
M media/audio/win/audio_output_win_unittest.cc View 1 2 3 4 5 6 7 6 chunks +17 lines, -32 lines 0 comments Download
M media/audio/win/waveout_output_win.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M media/cast/test/receiver.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M media/cast/test/utility/audio_utility.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (4 generated)
acolwell GONE FROM CHROMIUM
dalecurtis: Please review all of media/ rkc : Please OWNERS review components/copresence changes palmer: Please ...
6 years, 3 months ago (2014-09-17 20:48:27 UTC) #2
palmer
If I'm skimming this right, and I'm not sure I am, it seems like |total_bytes_delay| ...
6 years, 3 months ago (2014-09-17 21:08:44 UTC) #3
acolwell GONE FROM CHROMIUM
On 2014/09/17 21:08:44, Chromium Palmer wrote: > If I'm skimming this right, and I'm not ...
6 years, 3 months ago (2014-09-17 22:03:13 UTC) #4
rkc
//compoents/copresence lgtm https://codereview.chromium.org/481193003/diff/60001/components/copresence/mediums/audio/audio_player.h File components/copresence/mediums/audio/audio_player.h (right): https://codereview.chromium.org/481193003/diff/60001/components/copresence/mediums/audio/audio_player.h#newcode71 components/copresence/mediums/audio/audio_player.h:71: virtual void OnError(media::AudioOutputStream* /* stream */) OVERRIDE; ...
6 years, 3 months ago (2014-09-17 22:41:36 UTC) #5
DaleCurtis
lgtm - thanks a lot!
6 years, 3 months ago (2014-09-17 22:47:46 UTC) #6
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/481193003/diff/60001/components/copresence/mediums/audio/audio_player.h File components/copresence/mediums/audio/audio_player.h (right): https://codereview.chromium.org/481193003/diff/60001/components/copresence/mediums/audio/audio_player.h#newcode71 components/copresence/mediums/audio/audio_player.h:71: virtual void OnError(media::AudioOutputStream* /* stream */) OVERRIDE; On 2014/09/17 ...
6 years, 3 months ago (2014-09-18 00:25:06 UTC) #7
rkc
FYI: ledger no longer builds with Chrome. So you should be fine committing the patch ...
6 years, 3 months ago (2014-09-18 13:41:00 UTC) #8
acolwell GONE FROM CHROMIUM
On 2014/09/18 13:41:00, Rahul Chaturvedi wrote: > FYI: ledger no longer builds with Chrome. So ...
6 years, 3 months ago (2014-09-18 16:00:09 UTC) #9
rkc
Yep. It got fixed about a week ago with https://codereview.chromium.org/510893003/
6 years, 3 months ago (2014-09-18 16:31:04 UTC) #10
acolwell GONE FROM CHROMIUM
On 2014/09/18 16:31:04, Rahul Chaturvedi wrote: > Yep. It got fixed about a week ago ...
6 years, 3 months ago (2014-09-18 16:41:49 UTC) #11
rkc
Ah yes, that's been on my P3 list for a while :) I'll land a ...
6 years, 3 months ago (2014-09-18 16:43:17 UTC) #12
acolwell GONE FROM CHROMIUM
palmer: ping
6 years, 3 months ago (2014-09-18 17:02:33 UTC) #13
palmer
https://codereview.chromium.org/481193003/diff/120001/media/audio/audio_output_controller.cc File media/audio/audio_output_controller.cc (right): https://codereview.chromium.org/481193003/diff/120001/media/audio/audio_output_controller.cc#newcode283 media/audio/audio_output_controller.cc:283: int total_bytes_delay) { void AudioSyncReader::UpdatePendingBytes(uint32 bytes) int != uint32 ...
6 years, 3 months ago (2014-09-18 18:39:40 UTC) #14
miu
Sorry if I'm too late to the discussion, but can we plumb in "total_sample_delay" rather ...
6 years, 3 months ago (2014-09-18 21:55:48 UTC) #15
acolwell GONE FROM CHROMIUM
On 2014/09/18 21:55:48, miu wrote: > Sorry if I'm too late to the discussion, but ...
6 years, 3 months ago (2014-09-19 00:46:38 UTC) #16
acolwell GONE FROM CHROMIUM
On 2014/09/18 21:55:48, miu wrote: > Sorry if I'm too late to the discussion, but ...
6 years, 3 months ago (2014-09-19 00:46:41 UTC) #17
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/481193003/diff/120001/media/audio/audio_output_controller.cc File media/audio/audio_output_controller.cc (right): https://codereview.chromium.org/481193003/diff/120001/media/audio/audio_output_controller.cc#newcode283 media/audio/audio_output_controller.cc:283: int total_bytes_delay) { On 2014/09/18 18:39:40, Chromium Palmer wrote: ...
6 years, 3 months ago (2014-09-19 17:16:46 UTC) #18
acolwell GONE FROM CHROMIUM
palmer: ping. I believe I've addressed your concerns and I'd like to be able to ...
6 years, 3 months ago (2014-09-19 20:55:31 UTC) #19
palmer
Ooops, sorry; I got inundated in reviews. LGTM.
6 years, 3 months ago (2014-09-23 21:28:18 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/481193003/140001
6 years, 3 months ago (2014-09-23 21:48:52 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/1503) linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/1525)
6 years, 3 months ago (2014-09-23 22:23:46 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/481193003/180001
6 years, 2 months ago (2014-09-29 18:48:35 UTC) #26
commit-bot: I haz the power
Committed patchset #10 (id:180001) as 0f5946add444ab1ba30e5d6b6e3e5388db4c7980
6 years, 2 months ago (2014-09-29 18:54:07 UTC) #27
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 18:55:10 UTC) #28
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/c0a9787ba21a78aff69d863fb545e85981ac4dc1
Cr-Commit-Position: refs/heads/master@{#297220}

Powered by Google App Engine
This is Rietveld 408576698