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

Issue 12062002: Limit OnData() callbacks to every 5ms for mac audio input. (Closed)

Created:
7 years, 11 months ago by DaleCurtis
Modified:
7 years, 11 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, sail+watch_chromium.org
Visibility:
Public.

Description

Limit OnData() callbacks to every 5ms for mac audio input. OSX doesn't like the audio data being retimed and we apparently can not have Flash use a larger buffer size... So this hack ensures each OnData() call has time to deliver audio data to the renderer without it being smashed by the next call. 5ms was chosen since we use the same value for a similar hack in AlsaPcmOutputStream. This is not ideal and instead Pepper input clients should be using at least a 4k buffer on OSX until switched to the low latency pipeline. There's no guarantee that the audio input stream won't drop out at a much later time, but in local testing it's much greater than the 1.5 minutes to dropout we have now. BUG=157613, 168859 TEST=audio input doesn't drop out. longevity testing ongoing. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178517

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -8 lines) Patch
M media/audio/mac/audio_input_mac.cc View 1 chunk +6 lines, -8 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
DaleCurtis
Will back-merge to M25, M24.
7 years, 11 months ago (2013-01-23 19:28:45 UTC) #1
scherkus (not reviewing)
this makes me sad and wonder whether there's a way to prevent clobbering somehow -- ...
7 years, 11 months ago (2013-01-24 00:30:48 UTC) #2
DaleCurtis
On 2013/01/24 00:30:48, scherkus wrote: > this makes me sad and wonder whether there's a ...
7 years, 11 months ago (2013-01-24 01:38:14 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/12062002/1
7 years, 11 months ago (2013-01-24 02:10:18 UTC) #4
commit-bot: I haz the power
7 years, 11 months ago (2013-01-24 04:49:49 UTC) #5
Message was sent while issue was closed.
Change committed as 178517

Powered by Google App Engine
This is Rietveld 408576698