pub struct FftProcessor { /* private fields */ }
Expand description

An FFT processor with overlap and windowing.

This processor will collect samples onto a circular buffer and perform FFTs whenever hop size is reached.

Implementations

Constructs a new FftProcessor

  • size: Size of the FFT
  • direction: Direction of the FFT
  • overlap_ratio: 0.0 will do no overlap, 0.5 will do half a window of overlap and 0.75 will do 3/4 window overlap
  • window_function: The window function to use

The number of frequency bins this FFT processor operates with

Get a reference to the FFT bins buffer

Get a mutable reference to the FFT bins buffer

Get the hop size of this processor. This is the number of samples between each FFT.

Manually process an external FFT buffer in-place.

Returns true if an FFT has just been performed on the last call to s_process

Returns the sum of the power of the current input buffer window.

Manually perform an FFT; offset the input buffer by a certain index.

Trait Implementations

Returns the “default value” for a type. Read more
Process a single sample. If the input is mult-channel, will run for each channel by default. If the processor is multi-channel, implement s_process_frame instead. Read more
Prepare for playback based on current audio settings
Process a multi-channel frame. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.