gxAudioClockHelper Class Reference

Helper class to connect filters/soft-synths to the clock source. More...

#include <gxAudioClockHelper.h>

Inheritance diagram for gxAudioClockHelper:

gxAudioFilterVisitor List of all members.

Public Member Functions

 gxAudioClockHelper (gxAudioGraph *graph)
virtual ~gxAudioClockHelper ()
int connectClock (gxAudioFilter *synth)
 Connect a synth to the clock.
int disconnectClock (gxAudioFilter *synth)
 Disconnect the clock from the synth.
virtual bool visit (gxAudioFilter *filter)
 Part of the filter visitor pattern.

Detailed Description

Helper class to connect filters/soft-synths to the clock source.


Constructor & Destructor Documentation

gxAudioClockHelper::gxAudioClockHelper gxAudioGraph graph  ) 
 

virtual gxAudioClockHelper::~gxAudioClockHelper  )  [virtual]
 


Member Function Documentation

int gxAudioClockHelper::connectClock gxAudioFilter synth  ) 
 

Connect a synth to the clock.

This method performs the following:

  • creates a null audio source to drive the synth
  • adds it to the graph and connects to the synth
  • searches for a clock source in the graph
  • connects the null audio source to the clock

int gxAudioClockHelper::disconnectClock gxAudioFilter synth  ) 
 

Disconnect the clock from the synth.

Undoes the connection steps.

virtual bool gxAudioClockHelper::visit gxAudioFilter filter  )  [virtual]
 

Part of the filter visitor pattern.

Invoked by the graph when iterating through filters looking for the clock source.

Implements gxAudioFilterVisitor.


The documentation for this class was generated from the following file:
Generated on Mon Nov 21 01:01:36 2005 for gxLib by  doxygen 1.4.5