class VolumeControl
Defined at line 1218 of file fidling/gen/sdk/fidl/fuchsia.media.audio/fuchsia.media.audio/hlcpp/fuchsia/media/audio/cpp/fidl.h
A protocol for controlling volume.
Public Methods
void ~VolumeControl ()
void SetVolume (float volume)
Sets the volume of the audio element to the given value in
[0.0, 1.0]. If the value is provided is outside of [0.0, 1.0],
the value is clamped before application.
void SetMute (bool mute)
Sets whether the controlled element is muted. Mute is not the same
as setting volume to 0.0; volume will persist for the duration of
a mute. If volume was 0.5 before mute, volume will resume at 0.5
following unmute.