31 #ifndef NOISE_SHAPE_H_INCLUDED 32 #define NOISE_SHAPE_H_INCLUDED int noise_shape_clone(const noise_shape_ctx *from, noise_shape_ctx *to)
initializes a noise_shaper context so that its state is a copy of a given context returns an error co...
int noise_shape_init(noise_shape_ctx *ctx, int sos_count, const float *coeffs)
initializes a noise_shaper context returns an error code or 0
float noise_shape_get(noise_shape_ctx *ctx)
computes the next "noise shaping sample".
void noise_shape_destroy(noise_shape_ctx *ctx)
destroys a noise_shaper context
struct noise_shape_ctx_s noise_shape_ctx
void noise_shape_update(noise_shape_ctx *ctx, float qerror)
updates the noise shaper's state with the last quantization error