#include <gxAudioPin.h>
Public Types | |
enum | pintype_t { PINTYPE_DIRECTX_AUDIO = 1, PINTYPE_DIRECTX_MIDI = 2 } |
Public Member Functions | |
virtual | ~gxAudioPin () |
virtual gxAudioPin * | getOtherPin ()=0 |
Get the other pin that is connected to this one (if any). | |
virtual void | enable (bool isEnabled)=0 |
Enables or disabled the pin. | |
virtual bool | isEnabled ()=0 |
Specifies whether the pin is enabled. | |
virtual std::string | getId ()=0 |
Get this pin's identification string. | |
virtual std::string | getName ()=0 |
Get the display name for this pin. | |
virtual bool | isInput ()=0 |
Returns true if this is an input pin. | |
virtual gxAudioFilter * | getFilter ()=0 |
Get the filter that "owns" this pin. | |
virtual bool | isPinType (pintype_t theType)=0 |
virtual bool | isMemberOf (const char *groupName)=0 |
Specifies whether this pin is member of the named group. | |
virtual void | joinGroup (const char *groupName)=0 |
Causes this pin to join the named group. | |
virtual void | leaveGroup (const char *groupName)=0 |
Causes this pin to leave the named group. | |
virtual void | setMidiTransform (gxMidiTransform *transform, bool own=true)=0 |
Add a midi transform for this pin. | |
virtual gxMidiTransform * | getMidiTransform ()=0 |
Return a reference to the midi transform assigned to this pin. | |
virtual int | onMidiInput (gxMidiDataQueue *queue)=0 |
MIDI input pins should override this to receive MIDI events. | |
Protected Member Functions | |
gxAudioPin () |
|
|
|
|
|
|
|
Enables or disabled the pin. Not all pin types support enabling. This feature is typically used with pins attached to midi in/out ports to open/close the respective port. |
|
Get the filter that "owns" this pin.
|
|
Get this pin's identification string. Must be unique within the filter. |
|
Return a reference to the midi transform assigned to this pin. If there is no transform, return NULL. |
|
Get the display name for this pin.
|
|
Get the other pin that is connected to this one (if any).
|
|
Specifies whether the pin is enabled. Not all pin types support enabling. This feature is typically used with pins attached to midi in/out ports to open/close the respective port. |
|
Returns true if this is an input pin. False if this is an output pin. |
|
Specifies whether this pin is member of the named group.
|
|
|
|
Causes this pin to join the named group.
|
|
Causes this pin to leave the named group.
|
|
MIDI input pins should override this to receive MIDI events.
|
|
Add a midi transform for this pin. Only meaningful for midi pins. If "own" is true, the transform must be allocated on the heap and is "owned" by the output pin which will eventually delete it. The transform will be invoked on all midi data being sent to this pin. To disable the transform, invoke this method passing NULL as the transform argument. |