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

Issue 661443002: Do not wait for the synchronization in AudioSyncReader (Closed)

Created:
6 years, 2 months ago by no longer working on chromium
Modified:
5 years, 11 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Do not wait for the synchronization in AudioSyncReader. The current synchronization is problematic due to the |maximum_wait_time_| might be wrong on Mac, for example, when the buffer size has been changed to a lower value by another stream. On the other hand, we probably should not wait for the synchronization at all, that says, if the renderer has already delivered a packet to the browser, the browser should proceed the packet instead of waiting for the newest packet. BUG=423696

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -22 lines) Patch
M content/browser/renderer_host/media/audio_sync_reader.cc View 2 chunks +13 lines, -22 lines 2 comments Download

Messages

Total messages: 26 (2 generated)
no longer working on chromium
Hi, please review this CL.
6 years, 2 months ago (2014-10-15 11:34:50 UTC) #2
tommi (sloooow) - chröme
On 2014/10/15 11:34:50, xians1 wrote: > Hi, please review this CL. Is there a bug ...
6 years, 2 months ago (2014-10-15 17:25:09 UTC) #3
DaleCurtis
not lgtm, I strongly think this is not the right approach. I've got an email ...
6 years, 2 months ago (2014-10-15 18:24:57 UTC) #4
DaleCurtis
For others: the gist of the email is that we're always reading a previously requested ...
6 years, 2 months ago (2014-10-15 18:28:20 UTC) #5
DaleCurtis
You mention this only being the best case in email, but I don't see data ...
6 years, 2 months ago (2014-10-15 18:53:41 UTC) #6
no longer working on chromium
Copy the comment from another email thread: Dale: I actually thought about what you said ...
6 years, 2 months ago (2014-10-15 18:54:35 UTC) #7
no longer working on chromium
Dale, if you take a look at b/17298528, in comments #22, our users reported some ...
6 years, 2 months ago (2014-10-15 18:59:38 UTC) #8
DaleCurtis
Can you just send them a build with 128/2 sized delay and see if it ...
6 years, 2 months ago (2014-10-15 19:05:11 UTC) #9
no longer working on chromium
Dale, you are right, if we change the max_wait_time to 1-2ms, things will be worse ...
6 years, 2 months ago (2014-10-15 19:05:18 UTC) #10
no longer working on chromium
On 2014/10/15 19:05:11, DaleCurtis wrote: > Can you just send them a build with 128/2 ...
6 years, 2 months ago (2014-10-15 19:09:38 UTC) #11
DaleCurtis
It sounds like the root problem is that your processing is taking too long in ...
6 years, 2 months ago (2014-10-15 20:13:32 UTC) #12
no longer working on chromium
On 2014/10/15 20:13:32, DaleCurtis wrote: > It sounds like the root problem is that your ...
6 years, 2 months ago (2014-10-15 20:37:12 UTC) #13
DaleCurtis
I'm not okay with any kind "if (buffer_size == 10ms) do_magic()". Things get tricky if ...
6 years, 2 months ago (2014-10-15 21:14:00 UTC) #14
tommi (sloooow) - chröme
I think your second paragraph accurately describes the problem and what we would like to ...
6 years, 2 months ago (2014-10-16 06:49:23 UTC) #15
no longer working on chromium
6 years, 2 months ago (2014-10-16 08:27:22 UTC) #17
no longer working on chromium
On 2014/10/15 21:14:00, DaleCurtis wrote: > I'm not okay with any kind "if (buffer_size == ...
6 years, 2 months ago (2014-10-16 09:01:57 UTC) #18
DaleCurtis
Remember any buffer size change affects the output size across the entire browser, not just ...
6 years, 2 months ago (2014-10-16 19:47:53 UTC) #19
no longer working on chromium
On 2014/10/16 19:47:53, DaleCurtis wrote: > Remember any buffer size change affects the output size ...
6 years, 2 months ago (2014-10-16 20:14:20 UTC) #20
no longer working on chromium
A second though, maybe we can change the buffer size to 256 for all sample ...
6 years, 2 months ago (2014-10-16 20:20:57 UTC) #21
no longer working on chromium
https://codereview.chromium.org/661443002/diff/1/content/browser/renderer_host/media/audio_sync_reader.cc File content/browser/renderer_host/media/audio_sync_reader.cc (left): https://codereview.chromium.org/661443002/diff/1/content/browser/renderer_host/media/audio_sync_reader.cc#oldcode143 content/browser/renderer_host/media/audio_sync_reader.cc:143: while (timeout.InMicroseconds() > 0) { Dale, besides the buffer ...
6 years, 2 months ago (2014-10-16 20:27:56 UTC) #22
DaleCurtis
96kHz is already set to 256 frames: https://code.google.com/p/chromium/codesearch#chromium/src/media/audio/mac/audio_manager_mac.cc&l=720 https://codereview.chromium.org/661443002/diff/1/content/browser/renderer_host/media/audio_sync_reader.cc File content/browser/renderer_host/media/audio_sync_reader.cc (left): https://codereview.chromium.org/661443002/diff/1/content/browser/renderer_host/media/audio_sync_reader.cc#oldcode143 content/browser/renderer_host/media/audio_sync_reader.cc:143: while ...
6 years, 2 months ago (2014-10-16 21:14:14 UTC) #23
tommi (sloooow) - chröme
I had forgotten about the --audio-buffer-size escape hatch. I think we should run experiments with ...
6 years, 2 months ago (2014-10-17 15:58:56 UTC) #24
henrika (OOO until Aug 14)
I will update the issue and ask that users who can reproduce try with 256.
6 years, 2 months ago (2014-10-20 07:26:28 UTC) #25
henrika (OOO until Aug 14)
6 years, 2 months ago (2014-10-22 07:13:09 UTC) #26
Initial feedback indicates that 256 does work.

"I made a quick test with the 256 buffer size and it worked fine. I would like
to redo it though with a 128 comparison done in the same situation before giving
256 a thumbs up."

Powered by Google App Engine
This is Rietveld 408576698