template <>
class WireServer
Defined at line 1302 of file fidling/gen/sdk/fidl/fuchsia.media.audio/fuchsia.media.audio/cpp/fidl/fuchsia.media.audio/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_media_audio::VolumeControl>|
and |::fidl::ServerEnd
<
::fuchsia_media_audio::VolumeControl>|).
Public Methods
void SetVolume (::fuchsia_media_audio::wire::VolumeControlSetVolumeRequest * request, SetVolumeCompleter::Sync & completer)
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 (::fuchsia_media_audio::wire::VolumeControlSetMuteRequest * request, SetMuteCompleter::Sync & completer)
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.
void WireServer ()
Defined at line 1305 of file fidling/gen/sdk/fidl/fuchsia.media.audio/fuchsia.media.audio/cpp/fidl/fuchsia.media.audio/cpp/wire_messaging.h
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~WireServer ()
Defined at line 1306 of file fidling/gen/sdk/fidl/fuchsia.media.audio/fuchsia.media.audio/cpp/fidl/fuchsia.media.audio/cpp/wire_messaging.h