• Sergey Ulanov's avatar
    [Fuchsia] Allow SetVolume on uninitialized FuchsiaAudioRenderer · 4767de3a
    Sergey Ulanov authored
    initialized. FuchsiaAudioRenderer was not handling this correctly.
    It was trying to call AudioConsumer.BindVolumeControl before the
    AudioConsumer is connected. As result it was logging an error
    message about disconnected VolumeControl without setting the volume.
    Updated SetVolume() implementation to persist the volume value and
    send it as soon as AudioConsumer is connected.
    
    AudioRenderer: :SetVolume() may be called before the renderer is
    Change-Id: Ic5418c2c002c1181da01e8a278b0b53845baee47
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2481958
    Auto-Submit: Sergey Ulanov <sergeyu@chromium.org>
    Commit-Queue: Kevin Marshall <kmarshall@chromium.org>
    Reviewed-by: default avatarKevin Marshall <kmarshall@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#818564}
    4767de3a
fuchsia_audio_renderer.h 6.5 KB