Revert 238325 "Attempt to fix audio wedges by restarting all str..."
> Attempt to fix audio wedges by restarting all streams on OSX. > > Introduces two new methods to AudioOutputDispatcher: > CloseStreamsForWedgeFix() and RestartStreamsForWedgeFix(). > > Respectively, each method closes or restarts all active > streams owned by a given dispatcher. The process is > completely transparent to upstream clients. > > A new method on AudioManager, FixWedgedAudio() calls > CloseStreamsForWedgeFix() for all dispatchers and then > calls RestartStreamsForWedgeFix() afterward. > > FixWedgedAudio() is called by each AudioOutputController > when a wedge is detected. Multiple in flight wedge checks > are serialized by the audio thread. The hope is that wedges > will be fixed before the next WedgeCheck() fires. > > While the methods are available on all platforms, FixWedgedAudio() > is only wired up on OSX. > > BUG=160920 > TEST=unittest. fake wedge and observe stream recreation. > R=scherkus@chromium.org > > Review URL: https://codereview.chromium.org/61203008 TBR=dalecurtis@google.com Review URL: https://codereview.chromium.org/101473002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238327 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment