pub enum SnapshotAbnormalSample {
Nan,
NegInf,
PosInf,
}Expand description
Describes a non-finite sample value captured during audio unit processing.
Abnormal samples are collected when SnapshotConfig::allow_abnormal_samples is true;
the offending sample is replaced with 0.0 and recorded in
AudioUnitSnapshotData::abnormalities. When allow_abnormal_samples is false (default)
encountering any abnormal sample panics immediately.
Variants§
Nan
The sample value was f32::NAN.
NegInf
The sample value was f32::NEG_INFINITY.
PosInf
The sample value was f32::INFINITY.
Trait Implementations§
Source§impl Clone for SnapshotAbnormalSample
impl Clone for SnapshotAbnormalSample
Source§fn clone(&self) -> SnapshotAbnormalSample
fn clone(&self) -> SnapshotAbnormalSample
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 Debug for SnapshotAbnormalSample
impl Debug for SnapshotAbnormalSample
Source§impl Display for SnapshotAbnormalSample
impl Display for SnapshotAbnormalSample
Source§impl PartialEq for SnapshotAbnormalSample
impl PartialEq for SnapshotAbnormalSample
impl Copy for SnapshotAbnormalSample
impl Eq for SnapshotAbnormalSample
impl StructuralPartialEq for SnapshotAbnormalSample
Auto Trait Implementations§
impl Freeze for SnapshotAbnormalSample
impl RefUnwindSafe for SnapshotAbnormalSample
impl Send for SnapshotAbnormalSample
impl Sync for SnapshotAbnormalSample
impl Unpin for SnapshotAbnormalSample
impl UnsafeUnpin for SnapshotAbnormalSample
impl UnwindSafe for SnapshotAbnormalSample
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.