resample_gen
gen-routine (function table) operation
Given a function table of a certain size cursize, allocate and return
a new table of size newsize, filled with values resampled from the old
table using the kind of interpolation specified by inter. If the two
sizes are equivalent, merely make a straight copy of the table. Return
NULL if memory allocation error.
typedef enum {
NO_INTERP = 0,
LINEAR_INTERP
} InterpolationType;
float resample_gen(float table[], int cursize, int newsize, InterpolationType interp)
See
makegen
for info about function table creation.