Chromium Code Reviews
DescriptionFixing audio in mac
TEST=media_unittests
BUG=21574
Several problems in mac audio:
1. AudioQueueEnqueueBuffer doesn't accept empty buffers. But
we often hit buffer underrun with various reasons. In
order to simulate the behavior of Windows that empty
buffer would make the callback be called after a short time,
we write a short buffer of silence.
2. Mac audio doesn't provide pending bytes (unplayed buffer
size in audio buffer). This is now fixed by having a
running counter.
3. After Stop() is called, Start() will take a long time for
the audio packet to be played. It is found that
AudioQueueEnqueueBuffer should be called before
AudioQueueStart otherwise we'll hit this problem of long
delay for start.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26510
Patch Set 1 #
Total comments: 2
Messages
Total messages: 6 (0 generated)
|
|||||||||||||||||||||||||||||||||||||