Cleanup AudioDeviceThread to reduce locking and unused features.
While reviewing some of the other AudioOutputDevice changes, I
noticed this class is exceedingly crufty. This removes an extra
layer and associated locking from the audio callback thread.
AudioInputDevice/AudioOutputDevice both always use synchronized
buffers now, so that option is no longer necessary. Removes the
silly ref-counting from AudioDeviceThread in favor of ownership
by an already ref counted class :)
Removes the Start/Stop API from AudioDeviceThread since it's
easier to just construct and destruct it.
BUG=none
TEST=audio plays, all unittests still pass.
Review-Url: https://codereview.chromium.org/2076793002
Cr-Commit-Position: refs/heads/master@{#400734}
6 files changed