Home Units Hierarchy Routines All identifiers

Class unaDspFFT

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaDspFFT = class(unaObject)

Description

FFT implementation.

Hierarchy

Overview

Methods

Public constructor create(windowSize: unsigned = 1024);
Public procedure AfterConstruction(); override;
Public procedure BeforeDestruction(); override;
Public procedure dft_complex_forward(samples: pointer; channel: unsigned = 0);
Public procedure fft_complex_forward(samples: pointer; channel: unsigned = 0);
Public procedure setFormat(sps, bits, channels: int); overload;
Public procedure setFormat(format: punaPCMFormat); overload;
Public procedure setWindowSize(size: unsigned);

Properties

Public property data: pFloatArray read f_dataProxy;
Public property dataC: pComplexFloatArray read f_dataC;
Public property fftReady: bool read f_fftReady;
Public property sampleRate: int read f_sps;
Public property steps: unsigned read f_steps write setSteps;
Public property windowSize: unsigned read f_windowSize write setWindowSize;

Description

Methods

Public constructor create(windowSize: unsigned = 1024);
 
Public procedure AfterConstruction(); override;
 
Public procedure BeforeDestruction(); override;
 
Public procedure dft_complex_forward(samples: pointer; channel: unsigned = 0);

complex DFT. Results are in dataR, dataI. /Works really slow/

Public procedure fft_complex_forward(samples: pointer; channel: unsigned = 0);

complex FFT. Results are in dataR, dataI. /Works faster/

Public procedure setFormat(sps, bits, channels: int); overload;
 
Public procedure setFormat(format: punaPCMFormat); overload;
 
Public procedure setWindowSize(size: unsigned);

size should be power of 2.

Properties

Public property data: pFloatArray read f_dataProxy;
 
Public property dataC: pComplexFloatArray read f_dataC;
 
Public property fftReady: bool read f_fftReady;
 
Public property sampleRate: int read f_sps;
 
Public property steps: unsigned read f_steps write setSteps;
 
Public property windowSize: unsigned read f_windowSize write setWindowSize;
 

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09