• Yuri Wiitala's avatar
    Fix unintended local audio "blips" when using the Mirroring Service. · 2aa05df7
    Yuri Wiitala authored
    Fixes a bug where local audio unmutes briefly for a second when the
    Mirroring Service switches between mirroring and remoting. This is
    accomplished by holding a "Muter" sentinel throughout the whole session
    to ensure no accidental audio leakage happens while loopback capture is
    closed/re-started.
    
    In my quest to fix the bug, it became clear that the
    content::AudioLoopbackStreamCreator does not provide the
    granularity-of-control needed for the muting bugfix. Thus, this change
    has CastMirroringServiceHost invoke the Audio Service mojo APIs
    directly.
    
    Bug: 1111026
    Change-Id: I9b3e60814306be2179d46a5daeb4c7e8ccee1bdb
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2504636Reviewed-by: default avatarJordan Bayles <jophba@chromium.org>
    Commit-Queue: Yuri Wiitala <miu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#824740}
    2aa05df7
cast_mirroring_service_host.h 6.78 KB