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

Issue 856843002: Use audio shifter instead of a fifo for local mediastream playback. (Closed)

Created:
5 years, 11 months ago by hubbe
Modified:
5 years, 11 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use audio shifter instead of a fifo for local mediastream playback. There are two reasons for this change: 1. The current code path doesn't work correctly if the media stream and the output devices clocks don't match up *exactly*. Underruns/lipsync issues can occur. 2. This allows for audio to be explicitly buffered for some period of time, which I plan to utilize in the cast_streaming receiver code. Currently this code path is not often used, since it only happens when you get a media stream from getUserMedia and plug it into a media player without going through webrtc. Committed: https://crrev.com/0650f24c76ebe1e30552f655c417668a1ba32518 Cr-Commit-Position: refs/heads/master@{#313193}

Patch Set 1 #

Total comments: 4

Patch Set 2 : comment added #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -45 lines) Patch
M content/renderer/media/webrtc_local_audio_renderer.h View 3 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_renderer.cc View 1 6 chunks +27 lines, -41 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
hubbe
5 years, 11 months ago (2015-01-16 19:29:36 UTC) #2
Alpha Left Google
I don't think I'm the best person to review this. Someone from WebRTC is a ...
5 years, 11 months ago (2015-01-20 21:51:03 UTC) #5
henrika (OOO until Aug 14)
Thanks hubbe. As you say, this code is not essential for the WebRTC stack today ...
5 years, 11 months ago (2015-01-21 08:54:30 UTC) #7
henrika (OOO until Aug 14)
https://codereview.chromium.org/856843002/diff/1/content/renderer/media/webrtc_local_audio_renderer.cc File content/renderer/media/webrtc_local_audio_renderer.cc (right): https://codereview.chromium.org/856843002/diff/1/content/renderer/media/webrtc_local_audio_renderer.cc#newcode44 content/renderer/media/webrtc_local_audio_renderer.cc:44: audio_shifter_->Pull( What effect does the provided time value have ...
5 years, 11 months ago (2015-01-21 08:54:38 UTC) #8
hubbe
https://codereview.chromium.org/856843002/diff/1/content/renderer/media/webrtc_local_audio_renderer.cc File content/renderer/media/webrtc_local_audio_renderer.cc (right): https://codereview.chromium.org/856843002/diff/1/content/renderer/media/webrtc_local_audio_renderer.cc#newcode44 content/renderer/media/webrtc_local_audio_renderer.cc:44: audio_shifter_->Pull( On 2015/01/21 08:54:38, henrika wrote: > What effect ...
5 years, 11 months ago (2015-01-23 00:54:56 UTC) #9
henrika (OOO until Aug 14)
Should have checked the AudioShifter header. Looks like great work, thanks!
5 years, 11 months ago (2015-01-23 08:37:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/856843002/20001
5 years, 11 months ago (2015-01-23 19:19:34 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/37990) Try jobs failed on following ...
5 years, 11 months ago (2015-01-23 19:29:29 UTC) #14
hubbe
On 2015/01/23 08:37:37, henrika wrote: > Should have checked the AudioShifter header. Looks like great ...
5 years, 11 months ago (2015-01-23 19:34:23 UTC) #15
DaleCurtis
rs lgtm
5 years, 11 months ago (2015-01-27 01:20:49 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/856843002/20001
5 years, 11 months ago (2015-01-27 01:22:46 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/37990)
5 years, 11 months ago (2015-01-27 01:23:35 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/856843002/20001
5 years, 11 months ago (2015-01-27 01:29:03 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 11 months ago (2015-01-27 01:30:38 UTC) #23
commit-bot: I haz the power
5 years, 11 months ago (2015-01-27 01:32:21 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/0650f24c76ebe1e30552f655c417668a1ba32518
Cr-Commit-Position: refs/heads/master@{#313193}

Powered by Google App Engine
This is Rietveld 408576698