libnxter  0.1
Data Structures | Functions
Sampler.nxc File Reference

A sampler to sample a stream of inputs at periodic interval. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SamplerContext
 The class to hold sampler context. More...
 

Functions

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.
 

Detailed Description

A sampler to sample a stream of inputs at periodic interval.

Definition in file Sampler.nxc.