|
virtual AudioInfo | audioInfo () override |
|
int | availableForWrite () override |
| We try to fill the buffer at once.
|
|
virtual bool | begin () |
|
bool | begin (AudioFFTConfig info) |
| starts the processing
|
|
virtual bool | begin (AudioInfo info) |
|
AudioFFTConfig & | config () |
| Provides the actual configuration.
|
|
AudioFFTConfig | defaultConfig () |
| Provides the default configuration.
|
|
FFTDriver * | driver () |
| provides access to the FFTDriver which implements the basic FFT functionality
|
|
FFTDriverRealFFT * | driverEx () |
|
void | end () override |
| Release the allocated memory.
|
|
virtual void | flush () override |
|
float | frequency (int bin) |
| Determines the frequency of the indicated bin.
|
|
float * | ifft (float *real, float *complex) |
| Inverse fft - convert fft result back to time domain (samples)
|
|
float * | imgArray () |
| Provides the complex array returned by the FFT
|
|
virtual bool | isDeletable () |
| If true we need to release the related memory in the destructor.
|
|
int | length () |
| The number of samples.
|
|
float | magnitude (int bin) |
| Calculates the magnitude of the fft result to determine the max value (bin is 0 to size())
|
|
float | magnitudeFast (int bin) |
|
float * | magnitudes () |
| Provides the magnitudes as array of size size(). Please note that this method is allocating additinal memory!
|
|
float * | magnitudesFast () |
| Provides the magnitudes w/o calling the square root function as array of size size(). Please note that this method is allocating additinal memory!
|
|
| operator bool () |
|
float * | realArray () |
| Provides the real array returned by the FFT.
|
|
void | reset () |
| Just resets the current_pos e.g. to start a new cycle.
|
|
AudioFFTResult | result () |
| Determines the result values in the max magnitude bin.
|
|
template<int N> |
void | resultArray (AudioFFTResult(&result)[N]) |
| Determines the N biggest result values.
|
|
unsigned long | resultTime () |
| time after the fft: time when the last result was provided - you can poll this to check if we have a new result
|
|
unsigned long | resultTimeBegin () |
| time before the fft
|
|
void | setAudioInfo (AudioInfo info) override |
| Notify change of audio information.
|
|
virtual void | setNotifyAudioChange (AudioInfoSupport &bi) override |
|
int | size () |
| The number of bins used by the FFT which are relevant for the result.
|
|
virtual bool | validate (AudioInfo &info) |
|
size_t | write (const uint8_t *data, size_t len) override |
| Provide the audio data as FFT input.
|
|
virtual size_t | write (uint8_t ch) override |
|
virtual void | writeSilence (size_t len) |
|