template <>
class WireServer
Defined at line 1112 of file fidling/gen/sdk/fidl/fuchsia.audio.device/fuchsia.audio.device/cpp/fidl/fuchsia.audio.device/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_audio_device::RingBuffer>|
and |::fidl::ServerEnd
<
::fuchsia_audio_device::RingBuffer>|).
Public Methods
void SetActiveChannels (::fuchsia_audio_device::wire::RingBufferSetActiveChannelsRequest * request, SetActiveChannelsCompleter::Sync & completer)
Request that specific individual channels be powered down/up, if the
device supports this. This is intended for idle power conservation.
Channels are specified by bitmask; the least significant bit corresponds
to channel 0. Each bit not set indicates that the channel can be
deactivated. `SetActiveChannels` does not change how a ring buffer
responds to `Start`/`Stop`, specifically with regards to position.
Devices are not required to obey `SetActiveChannels`. For example, they
are not required to zero-out an input stream's inactive channels, and
data written to inactive channels of an output stream's ring buffer may
still be played.
If not called, then by default all channels will be active.
void Start (::fuchsia_audio_device::wire::RingBufferStartRequest * request, StartCompleter::Sync & completer)
Start the ring buffer, beginning at the first frame of the ring buffer.
void Stop (::fuchsia_audio_device::wire::RingBufferStopRequest * request, StopCompleter::Sync & completer)
Stop the ring buffer.
void WatchDelayInfo (WatchDelayInfoCompleter::Sync & completer)
Request delay information via a hanging get. The RingBuffer will respond
immediately to the first `WatchDelayInfo` call. Subsequent calls will
only be completed when the delay info has changed from previously
communicated values.
void WireServer ()
Defined at line 1115 of file fidling/gen/sdk/fidl/fuchsia.audio.device/fuchsia.audio.device/cpp/fidl/fuchsia.audio.device/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 1116 of file fidling/gen/sdk/fidl/fuchsia.audio.device/fuchsia.audio.device/cpp/fidl/fuchsia.audio.device/cpp/wire_messaging.h