CLAM-Development
1.1
|
Implementation of the FFT using the Fastest Fourier Transform of the West version 3. More...
#include <FFT_fftw3.hxx>
Public Member Functions | |
FFT_fftw3 (const FFTConfig &c=FFTConfig()) | |
~FFT_fftw3 () | |
const char * | GetClassName () const |
Override it in every subclass and retur the name of that class. | |
bool | Do () |
Supervised-mode Do function. | |
bool | Do (const Audio &in, Spectrum &out) |
Standard FFT Do function, with storage class references as arguments. | |
Protected Member Functions | |
bool | ConcreteConfigure (const ProcessingConfig &) |
Configuration method interface. |
Implementation of the FFT using the Fastest Fourier Transform of the West version 3.
Definition at line 45 of file FFT_fftw3.hxx.
CLAM::FFT_fftw3::FFT_fftw3 | ( | const FFTConfig & | c = FFTConfig() | ) |
Definition at line 97 of file FFT_fftw3.cxx.
References CLAM::Processing::Configure().
Definition at line 103 of file FFT_fftw3.cxx.
bool CLAM::FFT_fftw3::ConcreteConfigure | ( | const ProcessingConfig & | ) | [protected, virtual] |
Configuration method interface.
The Processing base class forces all the concrete classes derived from it to implement this method, which must actually perform the specific configuration tasks.
Note that the user can not call this method directly. He will use Configure instead. The argument is expected to be an object of the necesary concrete configuration class.
Reference | to the configuration object. |
true if the processing object is left in a consistent state, and can be executed.
This | method must throw a bad_cast exception if the argument is not an object of the expected configuration class. |
Implements CLAM::FFT_base.
Definition at line 72 of file FFT_fftw3.cxx.
References CLAM::Processing::AddConfigErrorMessage(), and CLAM::FFT_base::mSize.
bool CLAM::FFT_fftw3::Do | ( | ) | [virtual] |
Supervised-mode Do function.
Implements CLAM::FFT_base.
Definition at line 108 of file FFT_fftw3.cxx.
References CLAM::InPort< Token >::Consume(), CLAM::AudioInPort::GetAudio(), CLAM::OutPort< Token >::GetData(), CLAM::InPort< Token >::GetSize(), CLAM::FFT_base::mInput, CLAM::FFT_base::mOutput, CLAM::OutPort< Token >::Produce(), and CLAM::Spectrum::SetSize().
bool CLAM::FFT_fftw3::Do | ( | const Audio & | in, |
Spectrum & | out | ||
) | [virtual] |
Standard FFT Do function, with storage class references as arguments.
This method implements the old conversor routines. The resulting spectrum will be of input audio size / 2 + 1. Input audio must be a power-of-two.
Implements CLAM::FFT_base.
Definition at line 117 of file FFT_fftw3.cxx.
References CLAM::FFT_base::CheckTypes(), CLAM_BEGIN_DEBUG_CHECK, CLAM_DEBUG_ASSERT, CLAM_END_DEBUG_CHECK, CLAM_WARNING, isPowerOfTwo(), CLAM::Processing::IsRunning(), CLAM::FFT_base::mComplexflags, CLAM::FFT_base::mSize, CLAM::FFT_base::mState, CLAM::FFT_base::sComplexSync, CLAM::FFT_base::sOther, CLAM::Spectrum::SynchronizeTo(), and CLAM::FFT_base::ToOther().
const char* CLAM::FFT_fftw3::GetClassName | ( | ) | const [inline, virtual] |
Override it in every subclass and retur the name of that class.
Implements CLAM::Processing.
Definition at line 50 of file FFT_fftw3.hxx.