template <>
class Server
Defined at line 894 of file fidling/gen/sdk/fidl/fuchsia.virtualaudio/fuchsia.virtualaudio/cpp/fidl/fuchsia.virtualaudio/cpp/natural_messaging.h
Public Methods
void GetFormat (GetFormatCompleter::Sync & completer)
Returns the format selected by the client, or `NO_RING_BUFFER` if the
client has not yet selected a ring buffer format.
void GetGain (GetGainCompleter::Sync & completer)
Returns the current gain state for this device.
void GetBuffer (GetBufferCompleter::Sync & completer)
Returns details about the ring buffer. Returns `NO_RING_BUFFER` if the
client has not yet created the ring buffer.
void Server ()
Defined at line 897 of file fidling/gen/sdk/fidl/fuchsia.virtualaudio/fuchsia.virtualaudio/cpp/fidl/fuchsia.virtualaudio/cpp/natural_messaging.h
void SetNotificationFrequency (SetNotificationFrequencyRequest & request, SetNotificationFrequencyCompleter::Sync & completer)
Overrides the position notification frequency for this stream.
This affects the frequency of `OnPositionNotify` events only. It does
not affect the frequency of notification events sent through the audio
driver APIs.
void GetPosition (GetPositionCompleter::Sync & completer)
Returns the current position (in bytes) within the ring buffer, along
with the time (per MONOTONIC clock) that corresponds with that position.
This can only be called after the ring buffer is established. Returns
`NOT_STARTED` if the device has not yet Started streaming.
void ChangePlugState (ChangePlugStateRequest & request, ChangePlugStateCompleter::Sync & completer)
Hot-plugs or hot-unplugs an active virtual device, at the specified
time.
void AdjustClockRate (AdjustClockRateRequest & request, AdjustClockRateCompleter::Sync & completer)
Immediately change the virtual device's clock rate, as expressed in the
timing and content of position notifications the driver emits.
'ppm_monotonic' cannot exceed [-1000,+1000]. Each rate change in rate is
standalone; i.e. successive rate changes are not cumulative.
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 ~Server ()
Defined at line 898 of file fidling/gen/sdk/fidl/fuchsia.virtualaudio/fuchsia.virtualaudio/cpp/fidl/fuchsia.virtualaudio/cpp/natural_messaging.h