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

Issue 70903002: Dynamically FIFO when OSX requests unexpected frame counts. (Closed)

Created:
7 years, 1 month ago by DaleCurtis
Modified:
7 years, 1 month ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Dynamically FIFO when OSX requests unexpected frame counts. Previously we would just return silence in this case. However we did not invoke the AudioSourceCallback which would leave clients hanging. Traces don't seem to indicate this is the cause of OSX audio dropouts (the "AUHALStream::Render" traces are not even present when the bug occurs). However I'd like to remove all instances where we're returning silence w/o triggering an error. This change fixes an additional issue where we weren't calculating the latency correctly. Chrome expects the AudioBuffersState to be calculated for all channels, while CoreAudio expects mBytesPerFrame to be sizeof(Float32) for planar data. BUG=160920 TEST=force buffer size increase/decrease, check playback is okay. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236378

Patch Set 1 : Polish. #

Total comments: 6

Patch Set 2 : Polish. #

Patch Set 3 : Add log. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -59 lines) Patch
M media/audio/mac/audio_auhal_mac.h View 1 6 chunks +17 lines, -10 lines 0 comments Download
M media/audio/mac/audio_auhal_mac.cc View 1 2 4 chunks +54 lines, -49 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
DaleCurtis
7 years, 1 month ago (2013-11-13 00:41:37 UTC) #1
scherkus (not reviewing)
re: "This change fixes an additional issue where we weren't calculating the latency correctly." is ...
7 years, 1 month ago (2013-11-13 18:35:19 UTC) #2
DaleCurtis
I'm loathe to split out CLs which touch the same code since our CQ is ...
7 years, 1 month ago (2013-11-13 20:06:23 UTC) #3
DaleCurtis
Ping? This is still something we should land.
7 years, 1 month ago (2013-11-16 00:01:48 UTC) #4
DaleCurtis
Ping x2.
7 years, 1 month ago (2013-11-19 20:57:18 UTC) #5
scherkus (not reviewing)
Sorry .. still catching up. How long does this silence situation last for? Are we ...
7 years, 1 month ago (2013-11-19 21:05:16 UTC) #6
DaleCurtis
From observation, average case is milliseconds. I'd guess, based on the time of other CoreAudio ...
7 years, 1 month ago (2013-11-19 22:48:53 UTC) #7
scherkus (not reviewing)
lgtm, but some things to keep in mind: - we can't tell externally if the ...
7 years, 1 month ago (2013-11-20 20:37:51 UTC) #8
DaleCurtis
I'll add a VLOG(1) for FIFO creation so we'll at least have some logging information ...
7 years, 1 month ago (2013-11-20 21:27:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/70903002/200001
7 years, 1 month ago (2013-11-20 21:32:16 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/70903002/200001
7 years, 1 month ago (2013-11-21 01:56:17 UTC) #11
commit-bot: I haz the power
7 years, 1 month ago (2013-11-21 02:38:01 UTC) #12
Message was sent while issue was closed.
Change committed as 236378

Powered by Google App Engine
This is Rietveld 408576698