• Aidan Wolter's avatar
    Stop fetching 1s of data without delay · c9c6de7f
    Aidan Wolter authored
    CAOS used to fetch the first 1s of data as quickly as possible and send
    it to the audio decoder. This was causing the AudioRendererAlgorithm to
    be unable to fill the entire buffer and AudioRendererMixerInput to fill
    in the remaining section of the buffer with silence.
    
    The user-facing experience is the first second of audio after a
    resume/seek/skip could have dropouts.
    
    To fix this, we remove this rapid-fetch logic, and fetch all data at the
    same rate specified by the audio_params.
    
    Bug: b/116860605
    Test: pause/wait for CAOS close/resume 30+ times without reproducing.
    Change-Id: I00e479f5413d9c737d55839ce5017498a096ffae
    Reviewed-on: https://chromium-review.googlesource.com/c/1295229Reviewed-by: default avatarKenneth MacKay <kmackay@chromium.org>
    Commit-Queue: Aidan Wolter <awolter@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#601783}
    c9c6de7f
cast_audio_output_stream.cc 24.2 KB