void SamplerInit(SamplerContext &context, int currentPosition, int samplingPeriod)
Initializes the sampler with given sampling period and initial position.
int SamplerGet(SamplerContext &context, int currentPosition, int sampleInput)
Returns sampleInput at the sampling periods and -1 for all others.
The class to hold sampler context.