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

Issue 1538563002: Forward the number of skipped frames by the OS in audio playout. (Closed)

Created:
5 years ago by Henrik Grunell
Modified:
4 years, 8 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, imcheng+watch_chromium.org, posciak+watch_chromium.org, avayvod+watch_chromium.org, lcwu+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, halliwell+watch_chromium.org, jasonroberts+watch_google.com, mkwst+moarreviews-renderer_chromium.org, gunsch+watch_chromium.org, xjz+watch_chromium.org, isheriff+watch_chromium.org, mlamouri+watch-media_chromium.org, miu+watch_chromium.org, DaleCurtis, o1ka, vanellope-cl_google.com
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Forward the number of skipped frames by the OS in audio playout. * Introduce AudioOutputBufferParameters in media/audio/audio_parameters.h. This contains number of skipped frames. * Change the shared memory to hold AudioOutputBufferParameters before the audio data. * Forward skipped frames by OS on Mac over IPC. Not yet used by any client. This relands https://codereview.chromium.org/1487983002/ which was reverted due to crackling flash (pepper) audio. Original CL is in patch set 1. Will be done in follow-up CLs: * Forward skipped frames by OS on Windows. * Forward skipped frames to the WebRTC AEC. BUG=560371 TBR=dalecurtis@chromium.org,ckehoe@chromium.org (no changes from original CL) Committed: https://crrev.com/09a6d7939e02a3b892d3eeaac95c5f0fc36e7e72 Cr-Commit-Position: refs/heads/master@{#366078}

Patch Set 1 : Original patch from reverted CL #

Patch Set 2 : Fix pepper audio on render side. #

Total comments: 2

Patch Set 3 : Code review fix. git cl format. Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+312 lines, -172 lines) Patch
M chromecast/media/audio/cast_audio_output_stream.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chromecast/media/audio/cast_audio_output_stream_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/audio_modem/audio_player_impl.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M components/audio_modem/audio_player_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/audio_modem/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 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/audio_sync_reader.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/audio_sync_reader.cc View 3 chunks +17 lines, -3 lines 0 comments Download
M content/renderer/media/audio_track_recorder_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/media_recorder_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/renderer_webaudiodevice_impl.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/media/renderer_webaudiodevice_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/media/webrtc_audio_renderer.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/media/webrtc_audio_renderer.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_renderer.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/media/webrtc_local_audio_renderer.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M media/audio/alsa/alsa_output.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/alsa/alsa_output_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M media/audio/android/audio_android_unittest.cc View 5 chunks +13 lines, -7 lines 0 comments Download
M media/audio/android/opensles_output.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M media/audio/audio_device_thread.h View 1 chunk +2 lines, -2 lines 0 comments Download
M media/audio/audio_input_device.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M media/audio/audio_io.h View 1 chunk +4 lines, -1 line 0 comments Download
M media/audio/audio_low_latency_input_output_unittest.cc View 1 chunk +3 lines, -1 line 0 comments Download
M media/audio/audio_output_controller.h View 3 chunks +10 lines, -3 lines 0 comments Download
M media/audio/audio_output_controller.cc View 4 chunks +6 lines, -5 lines 0 comments Download
M media/audio/audio_output_controller_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M media/audio/audio_output_device.cc View 3 chunks +23 lines, -11 lines 0 comments Download
M media/audio/audio_output_device_unittest.cc View 3 chunks +9 lines, -6 lines 0 comments Download
M media/audio/audio_output_proxy_unittest.cc View 1 chunk +3 lines, -1 line 0 comments Download
M media/audio/audio_output_resampler.cc View 3 chunks +7 lines, -3 lines 0 comments Download
M media/audio/audio_output_stream_sink.h View 1 chunk +3 lines, -1 line 0 comments Download
M media/audio/audio_output_stream_sink.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M media/audio/audio_parameters.h View 2 chunks +18 lines, -7 lines 0 comments Download
M media/audio/clockless_audio_sink.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/cras/cras_unified.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/cras/cras_unified_unittest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M media/audio/fake_audio_input_stream.cc View 1 chunk +1 line, -1 line 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.h View 2 chunks +7 lines, -0 lines 0 comments Download
M media/audio/mac/audio_auhal_mac.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M media/audio/mac/audio_auhal_mac_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/mock_audio_source_callback.h View 1 chunk +4 lines, -2 lines 0 comments Download
M media/audio/null_audio_sink.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/pulse/pulse_output.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M media/audio/simple_sources.h View 3 chunks +9 lines, -3 lines 0 comments Download
M media/audio/simple_sources.cc View 3 chunks +8 lines, -3 lines 0 comments Download
M media/audio/simple_sources_unittest.cc View 5 chunks +7 lines, -9 lines 0 comments Download
M media/audio/sounds/audio_stream_handler.cc View 1 chunk +3 lines, -1 line 0 comments Download
M media/audio/virtual_audio_input_stream_unittest.cc View 1 chunk +5 lines, -3 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 chunk +2 lines, -2 lines 0 comments Download
M media/audio/win/audio_low_latency_output_win_unittest.cc View 4 chunks +6 lines, -4 lines 0 comments Download
M media/audio/win/audio_output_win_unittest.cc View 6 chunks +20 lines, -13 lines 0 comments Download
M media/audio/win/waveout_output_win.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M media/base/audio_bus_perftest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/base/audio_converter_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/base/audio_hash_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/base/audio_renderer_mixer.h View 1 chunk +3 lines, -1 line 0 comments Download
M media/base/audio_renderer_mixer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M media/base/audio_renderer_mixer_input.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/base/audio_renderer_mixer_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M media/base/audio_renderer_sink.h View 1 chunk +5 lines, -2 lines 0 comments Download
M media/base/fake_audio_render_callback.h View 1 chunk +3 lines, -1 line 0 comments Download
M media/base/fake_audio_render_callback.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M media/base/fake_audio_renderer_sink.h View 1 chunk +2 lines, -1 line 0 comments Download
M media/base/fake_audio_renderer_sink.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M media/blink/webaudiosourceprovider_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/blink/webaudiosourceprovider_impl_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M media/cast/test/receiver.cc View 1 chunk +3 lines, -1 line 0 comments Download
M media/cast/test/utility/audio_utility.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/renderers/audio_renderer_impl.h View 1 chunk +3 lines, -1 line 0 comments Download
M media/renderers/audio_renderer_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/shared_impl/ppb_audio_shared.cc View 1 2 2 chunks +9 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (12 generated)
Henrik Grunell
This fixes pepper audio. Original CL that was reverted is in patch set 1. Diff ...
5 years ago (2015-12-17 18:14:44 UTC) #5
bbudge
ppapi LGTM https://codereview.chromium.org/1538563002/diff/20001/ppapi/shared_impl/ppb_audio_shared.cc File ppapi/shared_impl/ppb_audio_shared.cc (right): https://codereview.chromium.org/1538563002/diff/20001/ppapi/shared_impl/ppb_audio_shared.cc#newcode116 ppapi/shared_impl/ppb_audio_shared.cc:116: DCHECK_EQ(static_cast<size_t>(shared_memory_size_), nit: cast shouldn't be needed.
5 years ago (2015-12-17 18:32:57 UTC) #6
halliwell
On 2015/12/17 18:32:57, bbudge wrote: > ppapi LGTM > > https://codereview.chromium.org/1538563002/diff/20001/ppapi/shared_impl/ppb_audio_shared.cc > File ppapi/shared_impl/ppb_audio_shared.cc (right): ...
5 years ago (2015-12-17 20:27:48 UTC) #7
tommi (sloooow) - chröme
lgtm
5 years ago (2015-12-17 23:43:15 UTC) #8
Henrik Grunell
https://codereview.chromium.org/1538563002/diff/20001/ppapi/shared_impl/ppb_audio_shared.cc File ppapi/shared_impl/ppb_audio_shared.cc (right): https://codereview.chromium.org/1538563002/diff/20001/ppapi/shared_impl/ppb_audio_shared.cc#newcode116 ppapi/shared_impl/ppb_audio_shared.cc:116: DCHECK_EQ(static_cast<size_t>(shared_memory_size_), On 2015/12/17 18:32:57, bbudge wrote: > nit: cast ...
5 years ago (2015-12-18 08:53:03 UTC) #9
tommi (sloooow) - chröme
On 2015/12/18 08:53:03, Henrik Grunell wrote: > https://codereview.chromium.org/1538563002/diff/20001/ppapi/shared_impl/ppb_audio_shared.cc > File ppapi/shared_impl/ppb_audio_shared.cc (right): > > https://codereview.chromium.org/1538563002/diff/20001/ppapi/shared_impl/ppb_audio_shared.cc#newcode116 ...
5 years ago (2015-12-18 09:10:56 UTC) #13
Henrik Grunell
On 2015/12/18 09:10:56, tommi wrote: > On 2015/12/18 08:53:03, Henrik Grunell wrote: > > > ...
5 years ago (2015-12-18 09:28:53 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1538563002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1538563002/40001
5 years ago (2015-12-18 09:29:17 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-18 11:28:29 UTC) #19
commit-bot: I haz the power
5 years ago (2015-12-18 11:29:28 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/09a6d7939e02a3b892d3eeaac95c5f0fc36e7e72
Cr-Commit-Position: refs/heads/master@{#366078}

Powered by Google App Engine
This is Rietveld 408576698