r8brain-free-src
High-quality pro audio sample rate converter library
 
Loading...
Searching...
No Matches
r8b::CDSPRealFFTKeeper Class Reference

A "keeper" class for real-valued FFT transform objects. More...

#include <CDSPRealFFT.h>

Inheritance diagram for r8b::CDSPRealFFTKeeper:

Public Member Functions

 CDSPRealFFTKeeper (const int LenBits)
 Acquires FFT object with the specified block length.
 
void init (const int LenBits)
 Acquires FFT object with the specified block length. This function can be called any number of times.
 
const CDSPRealFFToperator-> () const
 Returns pointer to the acquired FFT object.
 
void reset ()
 Releases a previously acquired FFT object.
 

Detailed Description

A "keeper" class for real-valued FFT transform objects.

Class implements "keeper" functionality for handling CDSPRealFFT objects. The allocated FFT objects are placed on the global static list of objects for future reuse instead of deallocation.

Constructor & Destructor Documentation

◆ CDSPRealFFTKeeper()

r8b::CDSPRealFFTKeeper::CDSPRealFFTKeeper ( const int LenBits)

Acquires FFT object with the specified block length.

Parameters
LenBitsThe length of FFT block (Nth power of 2), in the range [1; 30] inclusive, specifies the number of real values in a FFT block.

Member Function Documentation

◆ init()

void r8b::CDSPRealFFTKeeper::init ( const int LenBits)

Acquires FFT object with the specified block length. This function can be called any number of times.

Parameters
LenBitsThe length of FFT block (Nth power of 2), in the range [1; 30] inclusive, specifies the number of real values in a FFT block.