#include <AudioFileMemoryLoader.hxx>
Public Types | |
typedef MonoAudioFileReaderConfig | Config |
Public Member Functions | |
AudioFileMemoryLoader (const ProcessingConfig &cfg=Config()) | |
virtual const char * | GetClassName () const |
Override it in every subclass and retur the name of that class. | |
virtual const ProcessingConfig & | GetConfig () const |
Configuration getter. | |
bool | Do (Audio &outputSamples) |
virtual bool | Do () |
Supervised mode execution method (using ports). | |
virtual | ~AudioFileMemoryLoader () |
unsigned long | GetSamples () |
Protected Member Functions | |
virtual bool | ConcreteConfigure (const ProcessingConfig &cfgObject) |
Configuration method interface. | |
virtual bool | ConcreteStart () |
Processing objects have to redefine this method when starting them implies some internal changes. | |
Protected Attributes | |
Config | _config |
AudioOutPort | _output |
FloatOutControl | _timeOutput |
FloatInControl | _positionInput |
TControlData | _lastPosition |
TControlData | _delta |
long | _position |
Audio | _samples |
TData | _sampleRate |
Definition at line 35 of file AudioFileMemoryLoader.hxx.
Reimplemented from CLAM::Processing.
Definition at line 39 of file AudioFileMemoryLoader.hxx.
CLAM::AudioFileMemoryLoader::AudioFileMemoryLoader | ( | const ProcessingConfig & | cfg = Config() |
) |
Definition at line 37 of file AudioFileMemoryLoader.cxx.
CLAM::AudioFileMemoryLoader::~AudioFileMemoryLoader | ( | ) | [virtual] |
Definition at line 48 of file AudioFileMemoryLoader.cxx.
bool CLAM::AudioFileMemoryLoader::ConcreteConfigure | ( | const ProcessingConfig & | ) | [protected, 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 63 of file AudioFileMemoryLoader.cxx.
References _config.
bool CLAM::AudioFileMemoryLoader::ConcreteStart | ( | void | ) | [protected, virtual] |
Processing objects have to redefine this method when starting them implies some internal changes.
ie: adquiring resources.
Reimplemented from CLAM::Processing.
Definition at line 87 of file AudioFileMemoryLoader.cxx.
bool CLAM::AudioFileMemoryLoader::Do | ( | ) | [virtual] |
Supervised mode execution method (using ports).
Implements CLAM::Processing.
Definition at line 94 of file AudioFileMemoryLoader.cxx.
bool CLAM::AudioFileMemoryLoader::Do | ( | Audio & | outputSamples | ) |
Definition at line 102 of file AudioFileMemoryLoader.cxx.
const char * CLAM::AudioFileMemoryLoader::GetClassName | ( | ) | const [virtual] |
Override it in every subclass and retur the name of that class.
Implements CLAM::Processing.
Definition at line 53 of file AudioFileMemoryLoader.cxx.
const ProcessingConfig & CLAM::AudioFileMemoryLoader::GetConfig | ( | ) | const [virtual] |
Configuration getter.
Gets the configuration parameters used to create the object.
Reimplemented from CLAM::Processing.
Definition at line 58 of file AudioFileMemoryLoader.cxx.
unsigned long CLAM::AudioFileMemoryLoader::GetSamples | ( | ) |
Definition at line 148 of file AudioFileMemoryLoader.cxx.
Config CLAM::AudioFileMemoryLoader::_config [protected] |
Definition at line 58 of file AudioFileMemoryLoader.hxx.
Referenced by ConcreteConfigure().
TControlData CLAM::AudioFileMemoryLoader::_delta [protected] |
Definition at line 63 of file AudioFileMemoryLoader.hxx.
Definition at line 62 of file AudioFileMemoryLoader.hxx.
AudioOutPort CLAM::AudioFileMemoryLoader::_output [protected] |
Definition at line 59 of file AudioFileMemoryLoader.hxx.
long CLAM::AudioFileMemoryLoader::_position [protected] |
Definition at line 64 of file AudioFileMemoryLoader.hxx.
Definition at line 61 of file AudioFileMemoryLoader.hxx.
TData CLAM::AudioFileMemoryLoader::_sampleRate [protected] |
Definition at line 66 of file AudioFileMemoryLoader.hxx.
Audio CLAM::AudioFileMemoryLoader::_samples [protected] |
Definition at line 65 of file AudioFileMemoryLoader.hxx.
Definition at line 60 of file AudioFileMemoryLoader.hxx.