DescriptionFix erratic HTML5 audio playback
This was affecting all platforms. The major issue was that he SetPlaybackRate(1) which is used to start playback was being done in the middle of the series of Seek operations. So doing Seek() followed by SetPlaybackRate(1) was done, the Seek could immediately stop the playback. To fix, Seek() was made atomic with regards to SetPlaybackRate() by delaying the execution of SetPlaybackRate until after the Seek sequence has completely finished.
To make things run even smoother, a short delay was added before recyclilng a used audio stream in the Dispatcher. This gives the stream time to 'power down' before being reused.
Tested on Linux, Chrome-OS (Cr48) and Mac with great results, making HTML5 audio much more usable for games.
BUG=73045, 59369, 59370, 65618
TEST=Manual, Quickly playing/stopping HTML5 audio should play cleanly.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81670
Patch Set 1 #
Total comments: 9
Patch Set 2 : fixed nits #
Total comments: 4
Patch Set 3 : more fixup #
Total comments: 1
Patch Set 4 : cleanup #
Total comments: 4
Patch Set 5 : fix nit #
Messages
Total messages: 13 (0 generated)
|