• dalecurtis@google.com's avatar
    Fix flaky AudioStreamHandler initialization. · 14c706fa
    dalecurtis@google.com authored
    AudioStreamHandler was calling into the AudioManager on the wrong
    thread.  On OSX this will lead to undefined behavior since the
    CoreAudio API is not thread safe.
    
    Sadly due to antique unit tests, we don't have the proper DCHECKs
    in place to catch bad behavior automatically.  I've filed the bug
    below to track this effort.
    
    In this case we can simply use a fixed buffer size since ASH is
    using MakeAudioOutputStreamProxy() which will take care of any
    necessary rebuffering and resampling.
    
    BUG=325373
    TEST=none
    R=scherkus@chromium.org
    
    Review URL: https://codereview.chromium.org/102693003
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238484 0039d316-1c4b-4281-b951-d872f2087c98
    14c706fa
audio_stream_handler.cc 5.36 KB