Chromium Code Reviews
DescriptionChange the way we are stopping audio stream on Mac once again.
r142235 was not enough, we were not touching audio buffers after stop,
but OS could still touch audio queue. That causes problems if we were
deleting audio stream immediately after stopping, e.g. if audio mixer
tried to keep audio stream opened after last logical stream stopped
and then stopped/closed it.
I was able to reproduce the problem locally (for whatever reason this time
it worked), and after the fix it (finally) went away -- browsert_tests
PPAPITest.Audio_Creation successfully runs for 300 iterations. When I revert
to previos way of signaling, problem resurfaces again.
Fix is to use "property listener" to listen to "is running" audio queue
property, and signal "stream stopped" event only after "is running" property
changes to false. Functions that do are documented in the Apple core audio
documentation but not used in samples, so they are hard to find if you don't
know what to look for.
Also re-enabling mixer change to keep physical stream opened for some time,
That should complete browser-side mixer work and fix several related bugs.
BUG=102395
BUG=114701
BUG=129190
BUG=131720
TEST=No observable diffs, but crashes and seek problems should go away.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142862
Patch Set 1 #
Total comments: 4
Patch Set 2 : #
Messages
Total messages: 5 (0 generated)
|
|||||||||||||||||||||||||||||||||||||