template <>
class NaturalEventSender
Defined at line 796 of file fidling/gen/sdk/fidl/fuchsia.virtualaudio/fuchsia.virtualaudio/cpp/fidl/fuchsia.virtualaudio/cpp/natural_messaging.h
Public Methods
::fit::result< ::fidl::OneWayError> OnSetFormat (const ::fuchsia_virtualaudio::DeviceOnSetFormatRequest & payload)
Notifies all subscribed listeners when the above format is set or changed.
::fit::result< ::fidl::OneWayError> OnSetGain (const ::fuchsia_virtualaudio::DeviceOnSetGainRequest & payload)
Notifies all subscribed listeners when the above gain is set or changed.
::fit::result< ::fidl::OneWayError> OnBufferCreated (::fuchsia_virtualaudio::DeviceOnBufferCreatedRequest payload)
Notifies all subscribed listeners when the above buffer has been
created.
::fit::result< ::fidl::OneWayError> OnStart (const ::fuchsia_virtualaudio::DeviceOnStartRequest & payload)
Notifies all subscribed listeners when the device is commanded to Start
streaming. This can only occur after a device is fully configured
(format is set; ring buffer is established and fetched).
::fit::result< ::fidl::OneWayError> OnStop (const ::fuchsia_virtualaudio::DeviceOnStopRequest & payload)
Notifies all subscribed listeners when the device is commanded to Stop
streaming. This can only occur when the device is already Started. Stop
returns the device to a fully-configured state. Upon this command, the
already-set format and ring buffer are retained without change, but
position will re-begin at 0, if the device is again Started.
::fit::result< ::fidl::OneWayError> OnPositionNotify (const ::fuchsia_virtualaudio::DeviceOnPositionNotifyRequest & payload)
Notifies all subscribed listeners when any position notification is
issued by the driver. The frequency of these per-stream notifications is
set by whoever opened the device,, though the frequency can be overriden
by `SetNotificationFrequency`.