pub struct PolyphaseArbitraryResampler<T: IsAnalytic> { /* private fields */ }Expand description
Streaming resampler by an integer up_rate and a real down_rate.
Output m is taken from the upsampled, filtered signal at position ⌊m · down_rate⌋, so the
output times are rounded to the nearest-below point of the up_rate grid: the timing error is
at most one upsampled sample, and shrinks as up_rate grows. With an integer down_rate the
result equals PolyphaseIntegerResampler’s.
Implementations§
Trait Implementations§
Source§impl<T: IsAnalytic> StreamOperator<T, T> for PolyphaseArbitraryResampler<T>
impl<T: IsAnalytic> StreamOperator<T, T> for PolyphaseArbitraryResampler<T>
Source§fn process(&mut self, data_in: &[T]) -> Result<Option<Vec<T>>, ErrorsJSL>
fn process(&mut self, data_in: &[T]) -> Result<Option<Vec<T>>, ErrorsJSL>
Processes a chunk of input data and produces a corresponding chunk of output data. The input and output types can be defined based on the specific requirements of the application, such as audio samples, video frames, or other types of data.
This method is called repeatedly as new data becomes available in the stream.
Source§fn flush(&mut self) -> Result<Option<Vec<T>>, ErrorsJSL>
fn flush(&mut self) -> Result<Option<Vec<T>>, ErrorsJSL>
Flushes any remaining data in the operator’s internal buffers and produces any final output data. This method is typically called at the end of a stream or when the operator needs to be shut down, allowing it to perform any necessary cleanup or final computations before the stream is terminated.
Source§impl<T: IsAnalytic> StreamOperatorManagement for PolyphaseArbitraryResampler<T>
impl<T: IsAnalytic> StreamOperatorManagement for PolyphaseArbitraryResampler<T>
Auto Trait Implementations§
impl<T> Freeze for PolyphaseArbitraryResampler<T>
impl<T> RefUnwindSafe for PolyphaseArbitraryResampler<T>where
T: RefUnwindSafe,
impl<T> Send for PolyphaseArbitraryResampler<T>where
T: Send,
impl<T> Sync for PolyphaseArbitraryResampler<T>where
T: Sync,
impl<T> Unpin for PolyphaseArbitraryResampler<T>where
T: Unpin,
impl<T> UnsafeUnpin for PolyphaseArbitraryResampler<T>
impl<T> UnwindSafe for PolyphaseArbitraryResampler<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