#include <AudioSource.hxx>
Classes | |
class | Config |
struct | Port |
Public Types | |
typedef std::vector< Port > | Ports |
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 ProcessingConfig & | GetConfig () const |
Configuration getter. | |
bool | ConcreteConfigure (const ProcessingConfig &config) |
Configuration method interface. | |
Ports & | GetPorts () |
const Ports & | GetPorts () const |
Definition at line 12 of file AudioSource.hxx.
typedef std::vector<Port> CLAM::AudioSource::Ports |
Definition at line 32 of file AudioSource.hxx.
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.
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. |
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).
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.
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.
Definition at line 59 of file AudioSource.cxx.
Definition at line 48 of file AudioSource.cxx.
Definition at line 81 of file AudioSource.hxx.
References CLAM_ASSERT.