UtiLite
0.3.1
A lite utilities library
|
#include <UAudioPlayerTone.h>
Inherits UAudioPlayer, and UThread.
Private Member Functions | |
virtual void | mainLoopBegin () |
virtual void | mainLoop () |
virtual void | mainLoopEnd () |
This player is used to generate a tone (with variable frequency and length). It will use the DSP system of FMOD to generate a sound. It can be used with a file to repeat it after each a defined tick in ms.
virtual void UAudioPlayerTone::mainLoop | ( | ) | [private, virtual] |
Pure virtual method mainLoop(). The inner loop of the thread. This method is called repetitively until the thread is killed. Note that if kill() is called in mainLoopBegin(), mainLoop() is not called, terminating immediately the thread.
Implements UThread.
virtual void UAudioPlayerTone::mainLoopBegin | ( | ) | [private, virtual] |
Virtual method mainLoopBegin(). User can implement this function to add a behavior before the main loop is started. It is called once (before entering mainLoop()).
Reimplemented from UThread.
virtual void UAudioPlayerTone::mainLoopEnd | ( | ) | [private, virtual] |
Virtual method mainLoopEnd(). User can implement this function to add a behavior after the thread is killed (after exiting the mainLoop(), work is still done in the thread before exiting).
Reimplemented from UThread.