pub struct BitCrusherProcessorImpl<ST = f32>where
ST: AtomicFloatRepresentable + Float,{ /* private fields */ }
Implementations§
Source§impl<ST> BitCrusherProcessorImpl<ST>where
ST: AtomicFloatRepresentable + Float + 'static + From<f32>,
ST::AtomicType: Send + Sync,
f32: From<ST>,
impl<ST> BitCrusherProcessorImpl<ST>where
ST: AtomicFloatRepresentable + Float + 'static + From<f32>,
ST::AtomicType: Send + Sync,
f32: From<ST>,
pub fn new(handle: Shared<BitCrusherHandleImpl<ST>>) -> Self
pub fn handle(&self) -> &Shared<BitCrusherHandleImpl<ST>>
Trait Implementations§
Source§impl<ST> AudioProcessor for BitCrusherProcessorImpl<ST>where
ST: AtomicFloatRepresentable + Float + 'static + From<f32>,
ST::AtomicType: Send + Sync,
f32: From<ST>,
impl<ST> AudioProcessor for BitCrusherProcessorImpl<ST>where
ST: AtomicFloatRepresentable + Float + 'static + From<f32>,
ST::AtomicType: Send + Sync,
f32: From<ST>,
type SampleType = ST
Source§fn prepare(&mut self, context: &mut AudioContext)
fn prepare(&mut self, context: &mut AudioContext)
Prepare for playback based on current audio settings
Source§fn process(
&mut self,
_context: &mut AudioContext,
data: &mut AudioBuffer<Self::SampleType>,
)
fn process( &mut self, _context: &mut AudioContext, data: &mut AudioBuffer<Self::SampleType>, )
Process a block of samples by mutating the input
AudioBuffer
Source§impl<ST> AudioProcessorHandleProvider for BitCrusherProcessorImpl<ST>where
ST: AtomicFloatRepresentable + Float + 'static + From<f32>,
ST::AtomicType: Send + Sync,
f32: From<ST>,
impl<ST> AudioProcessorHandleProvider for BitCrusherProcessorImpl<ST>where
ST: AtomicFloatRepresentable + Float + 'static + From<f32>,
ST::AtomicType: Send + Sync,
f32: From<ST>,
fn generic_handle(&self) -> AudioProcessorHandleRef
Auto Trait Implementations§
impl<ST> Freeze for BitCrusherProcessorImpl<ST>
impl<ST> RefUnwindSafe for BitCrusherProcessorImpl<ST>
impl<ST> Send for BitCrusherProcessorImpl<ST>
impl<ST> Sync for BitCrusherProcessorImpl<ST>
impl<ST> Unpin for BitCrusherProcessorImpl<ST>
impl<ST> UnwindSafe for BitCrusherProcessorImpl<ST>
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