• benzh's avatar
    Hotword: Fix always-on case by removing MS_CONFIGURED timeout · 3d143aff
    benzh authored
    The behavior of MediaStreamAudioTrack::Configure() has changed:
    
    Configure() used to be able to complete before any audio sample
    is received because the AudioParameter can be obtained from a
    WebRtcLocalAudioTrack according to
    https://codereview.chromium.org/857093002
    
    After the media stream refactoring http://crbug.com/577874
    Configure() remains pending until the first audio frame is
    received. For always-on hotword detection with a DSP audio
    source, no audio sample is sent until the DSP detects a
    potential hotword trigger.
    
    This patch removes MS_CONFIGURED timeout so that the plugin
    can keep waiting for a hotword instead of reporting a timeout
    error.
    
    BUG=616203
    TEST=Verified always-on hotwording on Samus and Chell
    Signed-off-by: default avatarBen Zhang <benzh@chromium.org>
    CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
    
    Review-Url: https://codereview.chromium.org/2306803003
    Cr-Commit-Position: refs/heads/master@{#418997}
    3d143aff
nacl_manager.js 19.2 KB