#include <gxAudioClockSink.h>
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. |
An audio source (a filter that implements gxAudioClockSource) will generate clock notifications each time it is ready to receive another buffer of audio frames.
|
|
|
|
|
Called when the clock source is ready for another buffer of audio frames.
|
|
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. |