DescriptionDon't start WASAPI render thread until setup completes.
Creating the render thread before setting up the |audio_client_|
may lead to race conditions when repeatedly starting and stopping
a stream.
With this patch, nothing touches |audio_client_| until IAudioClient
triggers the render event for data.
As a bonus, it fixes a destruction issue where |audio_clock| was
being destructed on the wrong thread (render vs audio), see docs:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd370873.aspx
BUG=310838
TEST=none
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237694
Patch Set 1 : Fixes. #Patch Set 2 : Add IAudioClock. #
Total comments: 2
Patch Set 3 : Cleanup member variables. #
Messages
Total messages: 13 (0 generated)
|