#include <gapeaudiodriver.h>
Inheritance diagram for GapeAudioDriver::
Public Slots | |
void | start () |
Starts the driving thread. | |
void | pause () |
Pauses the thread until unPause() is called. | |
void | unPause () |
Unpauses the thread - if its not paused, does nothing harmlessly. | |
bool | isPaused () |
Determines if the thread is paused. More... | |
virtual void | receiveTick (const GapeFloat *values, int numValues) |
Pure virtual function that all subclasses of GapeUnit must define. More... | |
Public Methods | |
GapeAudioDriver () | |
The constructor. | |
~GapeAudioDriver () | |
The destructor. More... |
(Using a helper) The GapeAudioDriver continually signals emitTick() - as soon as the unit chain which has been hooked to it have completed their receive and emit ticks, it will signal emitTick() again. In this manner, it will drive an application at the sampling rate if they are hooked up to a real time output, or as fast as possible if they are writing to disk or something. Be careful - if you mute all units in a chain being driven by an audio driver, the audio driver will become a runaway thread and hog the processor. In this case, you should also pause the driver.
Definition at line 23 of file gapeaudiodriver.h.
|
The destructor. This will take care of stopping the thread as well. Definition at line 55 of file gapeaudiodriver.cpp. |
|
Determines if the thread is paused.
Definition at line 72 of file gapeaudiodriver.cpp. |
|
Pure virtual function that all subclasses of GapeUnit must define. This function is the primary function in the GapeUnit environment. See class documentation for more info.
Reimplemented from GapeUnit. Definition at line 60 of file gapeaudiodriver.h. |