gxAudioClockSink Class Reference

Implement this interface to receive audio clock notifications. More...

#include <gxAudioClockSink.h>

List of all members.

Public Member Functions

 gxAudioClockSink ()
virtual ~gxAudioClockSink ()
virtual int clock ()=0
 Called when the clock source is ready for another buffer of audio frames.
virtual int config (int framesPerBuffer, int sampleRate)=0
 This method will be called at least once before the first clock.


Detailed Description

Implement this interface to receive audio clock notifications.

An audio source (a filter that implements gxAudioClockSource) will generate clock notifications each time it is ready to receive another buffer of audio frames.


Constructor & Destructor Documentation

gxAudioClockSink::gxAudioClockSink  )  [inline]
 

virtual gxAudioClockSink::~gxAudioClockSink  )  [inline, virtual]
 


Member Function Documentation

virtual int gxAudioClockSink::clock  )  [pure virtual]
 

Called when the clock source is ready for another buffer of audio frames.

virtual int gxAudioClockSink::config int  framesPerBuffer,
int  sampleRate
[pure virtual]
 

This method will be called at least once before the first clock.

It specifies the sample rate (ex. 44100 Hz) and buffer size (in frames per buffer). Note that for 32-bit floating point, stereo audio, each frame is 2 * sizeof(float) or 8 bytes. In this case, the size of the buffer in bytes would be 8 * framesPerBuffer.


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