start method

void start(
  1. double delay,
  2. double frequency
)

Implementation

void start(double delay, double frequency)
{
    if (frequency > 1.0E-3)
    {
        _active = true;

        _delay = delay;
        _period = 1.0 / frequency;

        _processedSampleCount = 0;
        _value = 0.0;
    }
    else
    {
        _active = false;
        _value = 0.0;
    }
}