• amistry's avatar
    Set audio format before adding pepper sink to audio track. · ec4c42f4
    amistry authored
    Some audio input devices don't generate caputure data in a continuous basis, and
    instead only generate when some event happens. This may be an indefinite amount
    of time. However, |AudioSink::OnSetFormat| is only called whenever new samples
    come in. For pepper plugins, this means that |MediaStreamAudioTrack::Configure|
    can be blocked indefintely on these devices. To work around this, get the
    format before attaching to the audio track.
    
    BUG=403138
    
    Review URL: https://codereview.chromium.org/857093002
    
    Cr-Commit-Position: refs/heads/master@{#313458}
    ec4c42f4
webrtc_local_audio_track.h 4.75 KB