#include <SMSAnalysis.hxx>
Definition at line 39 of file SMSAnalysis.hxx.
Public Member Functions | |
const char * | GetClassName () const |
Override it in every subclass and retur the name of that class. | |
SMSAnalysis (SMSAnalysisConfig &config) | |
SMSAnalysis () | |
~SMSAnalysis () | |
const ProcessingConfig & | GetConfig () const |
Configuration getter. | |
bool | Do (void) |
Supervised mode execution. | |
bool | Do (Frame &frame) |
bool | Do (Segment &segment) |
bool | ConcreteStart () |
Concrete start implementation, called when the user calls Start() on the Processing(Composite), should be used to implement any specific start implementation required by classes deriving from this class. |
CLAM::SMSAnalysis::SMSAnalysis | ( | SMSAnalysisConfig & | config | ) |
CLAM::SMSAnalysis::SMSAnalysis | ( | ) |
Definition at line 32 of file SMSAnalysis.cxx.
References CLAM::Processing::Configure(), CLAM::OutPort< Token >::ConnectToIn(), and CLAM::Processing::GetInPort().
CLAM::SMSAnalysis::~SMSAnalysis | ( | ) |
Definition at line 47 of file SMSAnalysis.cxx.
const char* CLAM::SMSAnalysis::GetClassName | ( | ) | const [inline, virtual] |
Override it in every subclass and retur the name of that class.
Reimplemented from CLAM::ProcessingComposite.
Definition at line 46 of file SMSAnalysis.hxx.
const ProcessingConfig& CLAM::SMSAnalysis::GetConfig | ( | ) | const [inline, virtual] |
Configuration getter.
Gets the configuration parameters used to create the object.
Implements CLAM::ProcessingComposite.
Definition at line 52 of file SMSAnalysis.hxx.
bool CLAM::SMSAnalysis::Do | ( | void | ) | [virtual] |
Supervised mode execution.
Implements CLAM::ProcessingComposite.
Definition at line 87 of file SMSAnalysis.cxx.
References CLAM::SMSAnalysisCore::Do().
Referenced by Do().
Definition at line 92 of file SMSAnalysis.cxx.
References CLAM::Processing::CanConsumeAndProduce(), CLAM::OutPort< Token >::CanProduce(), CLAM_DEBUG_ASSERT, CLAM::SMSAnalysisCore::Do(), CLAM::AudioOutPort::GetAudio(), CLAM::Processing::GetOutPort(), CLAM::OutPort< Token >::Produce(), and CLAM::AudioOutPort::SetSampleRate().
TODO: miliseconds and seconds are inconsistently used in different places?
Definition at line 140 of file SMSAnalysis.cxx.
References CLAM::Segment::AddFrame(), Do(), CLAM::SMSAnalysisConfig::GetHopSize(), CLAM::SMSAnalysisConfig::GetSamplingRate(), CLAM::Segment::mCurrentFrameIndex, and CLAM::DynamicType::UpdateData().
bool CLAM::SMSAnalysis::ConcreteStart | ( | void | ) | [virtual] |
Concrete start implementation, called when the user calls Start() on the Processing(Composite), should be used to implement any specific start implementation required by classes deriving from this class.
When overriding this function in a class derived from ProcessingComposite be sure to call the base class (so child Processings are properly started).
Reimplemented from CLAM::ProcessingComposite.
Definition at line 80 of file SMSAnalysis.cxx.
References CLAM::ProcessingComposite::ConcreteStart().