pub struct FmModulator { /* private fields */ }Expand description
A streaming FM modulator: real message samples in, unit-amplitude complex baseband out.
Implementations§
Trait Implementations§
Source§impl Clone for FmModulator
impl Clone for FmModulator
Source§impl Debug for FmModulator
impl Debug for FmModulator
Source§impl StreamOperator<f64, Complex<f64>> for FmModulator
impl StreamOperator<f64, Complex<f64>> for FmModulator
Source§fn process(
&mut self,
data_in: &[f64],
) -> Result<Option<Vec<Complex<f64>>>, ErrorsJSL>
fn process( &mut self, data_in: &[f64], ) -> Result<Option<Vec<Complex<f64>>>, 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<Complex<f64>>>, ErrorsJSL>
fn flush(&mut self) -> Result<Option<Vec<Complex<f64>>>, 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 StreamOperatorManagement for FmModulator
impl StreamOperatorManagement for FmModulator
Auto Trait Implementations§
impl Freeze for FmModulator
impl RefUnwindSafe for FmModulator
impl Send for FmModulator
impl Sync for FmModulator
impl Unpin for FmModulator
impl UnsafeUnpin for FmModulator
impl UnwindSafe for FmModulator
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