Skip to content
  • miu's avatar
    Introduce media::AudioPushFifo and a couple of use cases (and clean-ups). · 7e920b99
    miu authored
    The media::AudioPushFifo is yet another FIFO for audio data.  It is the
    "push" version of the existing media::AudioPullFifo.
    
    Two audio-handling implementations are switched over to using the new
    AudioPushFifo in this change, with a few more to follow in later
    changes:
    
    1. Cast Receiver glue: While there was no FIFO before, one will be
    required due to future refactoring work in the MediaStream audio
    framework.  In addition, a time value calculation was fixed, to adhere
    to the media::AudioCapturerSource interface contract.
    
    2. content::WebAudioCapturerSource: The code using the AudioFifo
    implementation was simplified by using AudioPushFifo instead.
    
    BUG=577881, 577874
    
    Review URL: https://codereview.chromium.org/1714593003
    
    Cr-Commit-Position: refs/heads/master@{#377457}
    7e920b99