TOBI SignalServer  0.1
void tobiss::SineGenerator::genSine ( ) [private]

Generate a sine curve and store it into the objects data vector.

This method is used to gnerate a sine with 1Hz on eligible channels wether in block oriented mode or not. Settings have to be given by initialization of the object. In non block oriented mode (buffersize = 1) data will be directly stored in the "data" SampleBlock. Using block oriented data creation (buffersize > 1) data is stored in the buffer first and if the desired number of blocks to store is achieved, the buffer is copied into "data". If new data is set, "samples_available" is set to true.

 All Data Structures Files Functions Variables