Lines Matching refs:effp

68 static int hilo1_getopts(sox_effect_t * effp, int argc, char **argv) {  in hilo1_getopts()  argument
69 return lsx_biquad_getopts(effp, argc, argv, 1, 1, 0, 1, 2, "", in hilo1_getopts()
70 *effp->handler.name == 'l'? filter_LPF_1 : filter_HPF_1); in hilo1_getopts()
74 static int hilo2_getopts(sox_effect_t * effp, int argc, char **argv) { in hilo2_getopts() argument
75 priv_t * p = (priv_t *)effp->priv; in hilo2_getopts()
77 return hilo1_getopts(effp, argc - 1, argv + 1); in hilo2_getopts()
81 return lsx_biquad_getopts(effp, argc, argv, 1, 2, 0, 1, 2, "qohk", in hilo2_getopts()
82 *effp->handler.name == 'l'? filter_LPF : filter_HPF); in hilo2_getopts()
86 static int bandpass_getopts(sox_effect_t * effp, int argc, char **argv) { in bandpass_getopts() argument
90 return lsx_biquad_getopts(effp, argc, argv, 2, 2, 0, 1, 2, "hkqob", type); in bandpass_getopts()
94 static int bandrej_getopts(sox_effect_t * effp, int argc, char **argv) { in bandrej_getopts() argument
95 return lsx_biquad_getopts(effp, argc, argv, 2, 2, 0, 1, 2, "hkqob", filter_notch); in bandrej_getopts()
99 static int allpass_getopts(sox_effect_t * effp, int argc, char **argv) { in allpass_getopts() argument
107 return lsx_biquad_getopts(effp, argc, argv, m, m, 0, 1, 2, "hkqo", type); in allpass_getopts()
111 static int tone_getopts(sox_effect_t * effp, int argc, char **argv) { in tone_getopts() argument
112 priv_t * p = (priv_t *)effp->priv; in tone_getopts()
114 p->fc = *effp->handler.name == 'b'? 100 : 3000; in tone_getopts()
115 return lsx_biquad_getopts(effp, argc, argv, 1, 3, 1, 2, 0, "shkqo", in tone_getopts()
116 *effp->handler.name == 'b'? filter_lowShelf: filter_highShelf); in tone_getopts()
120 static int equalizer_getopts(sox_effect_t * effp, int argc, char **argv) { in equalizer_getopts() argument
121 return lsx_biquad_getopts(effp, argc, argv, 3, 3, 0, 1, 2, "qohk", filter_peakingEQ); in equalizer_getopts()
125 static int band_getopts(sox_effect_t * effp, int argc, char **argv) { in band_getopts() argument
129 return lsx_biquad_getopts(effp, argc, argv, 1, 2, 0, 1, 2, "hkqo", type); in band_getopts()
133 static int deemph_getopts(sox_effect_t * effp, int argc, char **argv) { in deemph_getopts() argument
134 return lsx_biquad_getopts(effp, argc, argv, 0, 0, 0, 1, 2, "s", filter_deemph); in deemph_getopts()
138 static int riaa_getopts(sox_effect_t * effp, int argc, char **argv) { in riaa_getopts() argument
139 priv_t * p = (priv_t *)effp->priv; in riaa_getopts()
142 return --argc? lsx_usage(effp) : SOX_SUCCESS; in riaa_getopts()
158 static int start(sox_effect_t * effp) in start() argument
160 priv_t * p = (priv_t *)effp->priv; in start()
164 if (effp->in_signal.rate == 44100) { in start()
169 else if (effp->in_signal.rate == 48000) { in start()
180 w0 = 2 * M_PI * p->fc / effp->in_signal.rate; in start()
213 alpha = tan(M_PI * p->width / effp->in_signal.rate); in start()
344 if (effp->in_signal.rate == 44100) { in start()
350 else if (effp->in_signal.rate == 48000) { in start()
356 else if (effp->in_signal.rate == 88200) { in start()
362 else if (effp->in_signal.rate == 96000) { in start()
368 else if (effp->in_signal.rate == 192000) { in start()
379 double y = 2 * M_PI * 1000 / effp->in_signal.rate; in start()
391 if (effp->in_signal.mult) in start()
392 *effp->in_signal.mult /= mult; in start()
393 return lsx_biquad_start(effp); in start()