pub struct DspContext<T: Transcendental> {
pub sample_rate: f32,
pub block_size: usize,
pub block_position: usize,
pub _phantom: PhantomData<T>,
}Expand description
DSP processing context
Provides information about the current processing state:
- timestamps
- sample rate
- block size
- etc.
Fields§
§sample_rate: f32Current sample rate
block_size: usizeCurrent block size
block_position: usizeAbsolute position of the current block (in samples)
_phantom: PhantomData<T>Data type for current processing
Implementations§
Trait Implementations§
Source§impl<T: Clone + Transcendental> Clone for DspContext<T>
impl<T: Clone + Transcendental> Clone for DspContext<T>
Source§fn clone(&self) -> DspContext<T>
fn clone(&self) -> DspContext<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for DspContext<T>
impl<T> RefUnwindSafe for DspContext<T>where
T: RefUnwindSafe,
impl<T> Send for DspContext<T>
impl<T> Sync for DspContext<T>
impl<T> Unpin for DspContext<T>where
T: Unpin,
impl<T> UnsafeUnpin for DspContext<T>
impl<T> UnwindSafe for DspContext<T>where
T: UnwindSafe,
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