Lines Matching refs:effp
33 static int create(sox_effect_t * effp, int argc, char **argv) in create() argument
35 priv_t * p = (priv_t *)effp->priv; in create()
42 return argc? lsx_usage(effp) : SOX_SUCCESS; in create()
45 static double * make_filter(sox_effect_t * effp) in make_filter() argument
47 priv_t * p = (priv_t *)effp->priv; in make_filter()
49 sox_rate_t rate = effp->in_signal.rate; in make_filter()
82 static sox_bool read_knots(sox_effect_t * effp) in read_knots() argument
84 priv_t * p = (priv_t *) effp->priv; in read_knots()
85 FILE * file = lsx_open_input_file(effp, p->filename, sox_true); in read_knots()
114 static int start(sox_effect_t * effp) in start() argument
116 priv_t * p = (priv_t *) effp->priv; in start()
121 if (!p->num_knots && !read_knots(effp)) in start()
123 h = make_filter(effp); in start()
124 if (effp->global_info->plot != sox_plot_off) { in start()
125 lsx_plot_fir(h, p->n, effp->in_signal.rate, in start()
126 effp->global_info->plot, "SoX effect: firfit", -30., +30.); in start()
131 return lsx_dft_filter_effect_fn()->start(effp); in start()