#[repr(transparent)]pub struct AudioDeviceClockAlgorithmSelector(pub u32);Available on crate feature
AudioServerPlugIn only.Expand description
The valid values for kAudioDevicePropertyClockAlgorithm
When this value for the clock algorithm is specified, the Host will not apply any filtering to the time stamps returned from GetZeroTimeStamp(). The values will be used as-is.
When this value for the clock algorithm is specified, the Host applies a simple IIR filter to the time stamp stream. This is the default algorithm used for devices that don’t implement kAudioDevicePropertyClockAlgorithm.
This clock algorithm uses a 12 point moving window average to filter the time stamps returned from GetZeroTimeStamp().
See also Apple’s documentation
Tuple Fields§
§0: u32Implementations§
Source§impl AudioDeviceClockAlgorithmSelector
impl AudioDeviceClockAlgorithmSelector
pub const AlgorithmRaw: Self
pub const AlgorithmSimpleIIR: Self
pub const Algorithm12PtMovingWindowAverage: Self
Trait Implementations§
Source§impl Clone for AudioDeviceClockAlgorithmSelector
impl Clone for AudioDeviceClockAlgorithmSelector
Source§fn clone(&self) -> AudioDeviceClockAlgorithmSelector
fn clone(&self) -> AudioDeviceClockAlgorithmSelector
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Encode for AudioDeviceClockAlgorithmSelector
Available on crate feature objc2 only.
impl Encode for AudioDeviceClockAlgorithmSelector
Available on crate feature
objc2 only.Source§impl Ord for AudioDeviceClockAlgorithmSelector
impl Ord for AudioDeviceClockAlgorithmSelector
Source§fn cmp(&self, other: &AudioDeviceClockAlgorithmSelector) -> Ordering
fn cmp(&self, other: &AudioDeviceClockAlgorithmSelector) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AudioDeviceClockAlgorithmSelector
impl PartialEq for AudioDeviceClockAlgorithmSelector
Source§fn eq(&self, other: &AudioDeviceClockAlgorithmSelector) -> bool
fn eq(&self, other: &AudioDeviceClockAlgorithmSelector) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AudioDeviceClockAlgorithmSelector
impl PartialOrd for AudioDeviceClockAlgorithmSelector
Source§impl RefEncode for AudioDeviceClockAlgorithmSelector
Available on crate feature objc2 only.
impl RefEncode for AudioDeviceClockAlgorithmSelector
Available on crate feature
objc2 only.Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for AudioDeviceClockAlgorithmSelector
impl Eq for AudioDeviceClockAlgorithmSelector
impl StructuralPartialEq for AudioDeviceClockAlgorithmSelector
Auto Trait Implementations§
impl Freeze for AudioDeviceClockAlgorithmSelector
impl RefUnwindSafe for AudioDeviceClockAlgorithmSelector
impl Send for AudioDeviceClockAlgorithmSelector
impl Sync for AudioDeviceClockAlgorithmSelector
impl Unpin for AudioDeviceClockAlgorithmSelector
impl UnwindSafe for AudioDeviceClockAlgorithmSelector
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.