#include <MModule.h>
Inheritance diagram for MModule:

Public Slots | |
| virtual void | Activate ()=0 |
| virtual void | Deactivate ()=0 |
| virtual void | Run (const unsigned int n)=0 |
Public Member Functions | |
| virtual string | Name () const |
| virtual bool | IsActive () const |
| virtual MAudioInputPort * | ModuleAudioInput (const unsigned int n) const =0 |
| virtual MAudioOutputPort * | ModuleAudioOutput (const unsigned int n) const =0 |
| virtual MControlInputPort * | ModuleControlInput (const unsigned int n) const =0 |
| virtual MControlOutputPort * | ModuleControlOutput (const unsigned int n) const =0 |
| virtual unsigned int | NumberOfAudioInputs () const =0 |
| virtual unsigned int | NumberOfAudioOutputs () const =0 |
| virtual unsigned int | NumberOfControlInputs () const =0 |
| virtual unsigned int | NumberOfControlOutputs () const =0 |
| virtual MPort * | GetPortByName (const string &name) const |
| virtual bool | IsMine (MPort *port) const |
Protected Member Functions | |
| MModule (const string &name="module", QObject *parent=0) | |
Protected Attributes | |
| string | _name |
| bool | _active |
|
||||||||||||
|
Creates a modulefault constructor.
|
|
|
The name of the module.
|
|
|
Is the module active ?
|
|
|
The nth audio input port ( MAudioInputPort ) of the module.
|
|
|
The nth audio output port ( MAudioOutputPort ) of the module.
|
|
|
The nth control input port ( MControlInputPort ) of the module.
|
|
|
The nth control output port ( MControlOutputPort ) of the module.
|
|
|
The number of audio input ports ( MAudioInputPort ) of the module.
|
|
|
The number of audio output ports ( MAudioOutputPort ) of the module.
|
|
|
The number of control input ports ( MControlInputPort ) of the module.
|
|
|
The number of control output ports ( MControlOutputPort ) of the module.
|
|
|
Search for a port by called name belonging to this module.
|
|
|
Is the port mine ?
|
|
|
Try to activate the module.
At the end of the method, if the module has been activated IsActive( ) should return
|
|
|
Try to deactivate the module.
At the end of the method, if the module has been deactivated IsActive( ) should return
|
|
|
Run the module. Ask the module to proceed a block of audio data.
Implemented in MClient, MPlugin, and MSupervisor. |
|
|
The name of the module.
|
|
|
Is the module active ?
|