Missed a file

master
Peter Nelson 14 years ago
parent 2d4ffb346b
commit d250b9044a

@ -0,0 +1,16 @@
struct control_t
{
float value;
float step;
};
static inline void control_setstep(struct control_t *control, float value, uint32_t samples)
{
control->step = (value - control->value) / samples;
}
static inline void control_tick(struct control_t *control)
{
control->value += control->step;
}
Loading…
Cancel
Save