r8brain-free-src
High-quality pro audio sample rate converter library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
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)
 
void init (const int LenBits)
 
const CDSPRealFFToperator-> () const
 
void reset ()
 

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)

Function 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)

Function 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.

◆ operator->()

const CDSPRealFFT * r8b::CDSPRealFFTKeeper::operator-> ( ) const
Returns
Pointer to the acquired FFT object.

◆ reset()

void r8b::CDSPRealFFTKeeper::reset ( )

Function releases a previously acquired FFT object.