samphold
Files: samphold.h, samphold.c
Classic sample and hold
sp_samphold_create(sp_samphold **samphold)
sp_samphold_init(sp_data *sp, sp_samphold *samphold)
sp_samphold_compute(sp_data *sp, sp_samphold *samphold, SPFLOAT *trig, SPFLOAT *input, SPFLOAT *out)
sp_samphold_destroy(sp_samphold **samphold)
Inputs
trig: Will hold the current input value when non-zero.
input: Audio input.
Outputs
out: Signal output.