class SpectrumAnalyzer

Spectrum Analyzer. More...

Full nameCoral::SpectrumAnalyzer
Definition#include <spectrumanalyzer.h>
InheritsCoral::AudioWriterInterface [virtual public], Coral::Synchronizable
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

This class implements a spectrum analyzer device implementing AudioWriterInterface.

 SpectrumAnalyzer ()

Constructor.

SpectrumAnalyzer ()

Destructor.

card16  getSamplingRate ()

[const]

getSamplingRate() Implementation of AudioQualityInterface.

Reimplemented from AudioQualityInterface.

card8  getBits ()

[const]

getBits() Implementation of AudioQualityInterface.

Reimplemented from AudioQualityInterface.

card8  getChannels ()

[const]

getChannels() Implementation of AudioQualityInterface.

Reimplemented from AudioQualityInterface.

card16  getByteOrder ()

[const]

getByteOrder() Implementation of AudioQualityInterface.

Reimplemented from AudioQualityInterface.

cardinal  getBytesPerSecond ()

[const]

getBytesPerSecond() Implementation of AudioQualityInterface.

Reimplemented from AudioQualityInterface.

cardinal  getBitsPerSample ()

[const]

getBitsPerSample() Implementation of AudioQualityInterface.

Reimplemented from AudioQualityInterface.

card16  setSamplingRate (const card16 samplingRate)

setSamplingRate() Implementation of AdjustableAudioQualityInterface.

Reimplemented from AdjustableAudioQualityInterface.

card8  setBits (const card8 bits)

setBits() Implementation of AdjustableAudioQualityInterface.

Reimplemented from AdjustableAudioQualityInterface.

card8  setChannels (const card8 channels)

setChannels() Implementation of AdjustableAudioQualityInterface.

Reimplemented from AdjustableAudioQualityInterface.

card16  setByteOrder (const card16 byteOrder)

setByteOrder() Implementation of AdjustableAudioQualityInterface.

Reimplemented from AdjustableAudioQualityInterface.

bool  ready ()

[const]

ready() implementation of AudioWriterInterface

Reimplemented from AudioWriterInterface.

void  sync ()

sync() implementation of AudioWriterInterface

Reimplemented from AudioWriterInterface.

bool  write (const void* data, const size_t length)

write() implementation of AudioWriterInterface

Reimplemented from AudioWriterInterface.

bool  getSpectrum (cardinal* left, cardinal* right, const cardinal bars)

Do Fourier transformation and get spectrum.

Parameters:
leftPointer to spectrum array for left channel.
rightPointer to spectrum array for right channel.
barsNumber of bars.

Returns: true, if spectrum has been computed; false, if there is not enough input data available.