CLAM::AudioSource Class Reference

#include <AudioSource.hxx>

List of all members.


class  Config
struct  Port

Public Types

typedef std::vector< PortPorts

Public Member Functions

 AudioSource (const ProcessingConfig &config=Config())
 ~AudioSource ()
void SetFrameAndHopSize (const int val, unsigned index)
void SetExternalBuffer (const float *buf, unsigned nframes, unsigned index)
void SetExternalBuffer (const double *buf, unsigned nframes, unsigned index)
bool Do ()
 Supervised mode execution method (using ports).
const char * GetClassName () const
 Override it in every subclass and retur the name of that class.
const ProcessingConfigGetConfig () const
 Configuration getter.
bool ConcreteConfigure (const ProcessingConfig &config)
 Configuration method interface.
PortsGetPorts ()
const PortsGetPorts () const

Detailed Description

Definition at line 12 of file AudioSource.hxx.

Member Typedef Documentation

typedef std::vector<Port> CLAM::AudioSource::Ports

Definition at line 32 of file AudioSource.hxx.

Constructor & Destructor Documentation

CLAM::AudioSource::AudioSource ( const ProcessingConfig config = Config()  )  [inline]

Definition at line 65 of file AudioSource.hxx.

References CLAM::Processing::Configure().

CLAM::AudioSource::~AudioSource (  )  [inline]

Definition at line 75 of file AudioSource.hxx.

Member Function Documentation

bool CLAM::AudioSource::ConcreteConfigure ( const ProcessingConfig  )  [inline, 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.
false if the object is not yet fully configured. (For example, if some important configuration attribute such as number of ports was set to zero in the config 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.

Reimplemented from CLAM::Processing.

Definition at line 101 of file AudioSource.hxx.

References CLAM::Processing::CopyAsConcreteConfig().

bool CLAM::AudioSource::Do (  )  [virtual]

Supervised mode execution method (using ports).

A boolean telling whether it has been output

Implements CLAM::Processing.

Definition at line 20 of file AudioSource.cxx.

const char* CLAM::AudioSource::GetClassName (  )  const [inline, virtual]

Override it in every subclass and retur the name of that class.

Implements CLAM::Processing.

Definition at line 94 of file AudioSource.hxx.

const ProcessingConfig& CLAM::AudioSource::GetConfig (  )  const [inline, virtual]

Configuration getter.

Gets the configuration parameters used to create the object.

Const reference to the configuration object. The usual way to perform a configuration change in the processing object is to take a copy of this reference, to change it and to send it with the Configure method. If not overriden, it returns a NullProcessingConfig.

Reimplemented from CLAM::Processing.

Definition at line 96 of file AudioSource.hxx.

const Ports& CLAM::AudioSource::GetPorts (  )  const [inline]

Definition at line 112 of file AudioSource.hxx.

Ports& CLAM::AudioSource::GetPorts (  )  [inline]

Definition at line 111 of file AudioSource.hxx.

void CLAM::AudioSource::SetExternalBuffer ( const double *  buf,
unsigned  nframes,
unsigned  index 

Definition at line 59 of file AudioSource.cxx.

void CLAM::AudioSource::SetExternalBuffer ( const float *  buf,
unsigned  nframes,
unsigned  index 

Definition at line 48 of file AudioSource.cxx.

void CLAM::AudioSource::SetFrameAndHopSize ( const int  val,
unsigned  index 
) [inline]

Definition at line 81 of file AudioSource.hxx.

References CLAM_ASSERT.

The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.3