pub struct DeviceSynchronousProxy { /* private fields */ }
Implementations§
Source§impl DeviceSynchronousProxy
impl DeviceSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<DeviceEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<DeviceEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn get_format(
&self,
___deadline: MonotonicInstant,
) -> Result<DeviceGetFormatResult, Error>
pub fn get_format( &self, ___deadline: MonotonicInstant, ) -> Result<DeviceGetFormatResult, Error>
Returns the format selected by the client, or NO_RING_BUFFER
if the
client has not yet selected a ring buffer format.
Sourcepub fn get_gain(
&self,
___deadline: MonotonicInstant,
) -> Result<DeviceGetGainResult, Error>
pub fn get_gain( &self, ___deadline: MonotonicInstant, ) -> Result<DeviceGetGainResult, Error>
Returns the current gain state for this device.
Sourcepub fn get_buffer(
&self,
___deadline: MonotonicInstant,
) -> Result<DeviceGetBufferResult, Error>
pub fn get_buffer( &self, ___deadline: MonotonicInstant, ) -> Result<DeviceGetBufferResult, Error>
Returns details about the ring buffer. Returns NO_RING_BUFFER
if the
client has not yet created the ring buffer.
Sourcepub fn set_notification_frequency(
&self,
notifications_per_ring: u32,
___deadline: MonotonicInstant,
) -> Result<DeviceSetNotificationFrequencyResult, Error>
pub fn set_notification_frequency( &self, notifications_per_ring: u32, ___deadline: MonotonicInstant, ) -> Result<DeviceSetNotificationFrequencyResult, Error>
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.
Sourcepub fn get_position(
&self,
___deadline: MonotonicInstant,
) -> Result<DeviceGetPositionResult, Error>
pub fn get_position( &self, ___deadline: MonotonicInstant, ) -> Result<DeviceGetPositionResult, Error>
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.
Sourcepub fn change_plug_state(
&self,
plug_change_time: i64,
plugged: bool,
___deadline: MonotonicInstant,
) -> Result<DeviceChangePlugStateResult, Error>
pub fn change_plug_state( &self, plug_change_time: i64, plugged: bool, ___deadline: MonotonicInstant, ) -> Result<DeviceChangePlugStateResult, Error>
Hot-plugs or hot-unplugs an active virtual device, at the specified time.
Sourcepub fn adjust_clock_rate(
&self,
ppm_from_monotonic: i32,
___deadline: MonotonicInstant,
) -> Result<DeviceAdjustClockRateResult, Error>
pub fn adjust_clock_rate( &self, ppm_from_monotonic: i32, ___deadline: MonotonicInstant, ) -> Result<DeviceAdjustClockRateResult, Error>
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.
Trait Implementations§
Source§impl Debug for DeviceSynchronousProxy
impl Debug for DeviceSynchronousProxy
Source§impl SynchronousProxy for DeviceSynchronousProxy
impl SynchronousProxy for DeviceSynchronousProxy
Source§type Proxy = DeviceProxy
type Proxy = DeviceProxy
Source§type Protocol = DeviceMarker
type Protocol = DeviceMarker
Proxy
controls.