pub enum AsioDriverEvent {
Message {
selector: AsioMessageSelectors,
value: i32,
},
SampleRateChanged(f64),
}Expand description
Events dispatched to registered driver event callbacks.
Variants§
Message
A message from the ASIO driver’s asioMessage callback.
selector identifies the message type; value is the raw payload passed by the driver.
For AsioMessageSelectors::kAsioSelectorSupported queries, value is the selector being
queried. Return true to advertise support for it, false to decline. For other selectors,
the return value is ignored.
SampleRateChanged(f64)
The ASIO driver reported a sample rate change.
Only dispatched when the reported rate differs from the last known rate, so spurious
sampleRateDidChange calls (e.g. on AES/EBU sync status changes where the rate has not
actually changed) are suppressed.
Trait Implementations§
Source§impl Clone for AsioDriverEvent
impl Clone for AsioDriverEvent
Source§fn clone(&self) -> AsioDriverEvent
fn clone(&self) -> AsioDriverEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AsioDriverEvent
Auto Trait Implementations§
impl Freeze for AsioDriverEvent
impl RefUnwindSafe for AsioDriverEvent
impl Send for AsioDriverEvent
impl Sync for AsioDriverEvent
impl Unpin for AsioDriverEvent
impl UnsafeUnpin for AsioDriverEvent
impl UnwindSafe for AsioDriverEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more