Lines Matching refs:effp

102 static int sox_ladspa_getopts(sox_effect_t *effp, int argc, char **argv)  in sox_ladspa_getopts()  argument
104 priv_t * l_st = (priv_t *)effp->priv; in sox_ladspa_getopts()
118 return lsx_usage(effp); in sox_ladspa_getopts()
209 return lsx_usage(effp); in sox_ladspa_getopts()
218 return argc? lsx_usage(effp) : SOX_SUCCESS; in sox_ladspa_getopts()
224 static int sox_ladspa_start(sox_effect_t * effp) in sox_ladspa_start() argument
226 priv_t * l_st = (priv_t *)effp->priv; in sox_ladspa_start()
229 unsigned long rate = (unsigned long)effp->in_signal.rate; in sox_ladspa_start()
232 lsx_debug("rate for plugin is %g", effp->in_signal.rate); in sox_ladspa_start()
235 effp->in_signal.channels == effp->out_signal.channels) { in sox_ladspa_start()
238 if (!l_st->clone && effp->in_signal.channels > 1) { in sox_ladspa_start()
240 effp->in_signal.channels); in sox_ladspa_start()
249 l_st->handles = lsx_malloc(effp->in_signal.channels * in sox_ladspa_start()
252 while (l_st->handle_count < effp->in_signal.channels) in sox_ladspa_start()
261 if (l_st->input_count < effp->in_signal.channels) { in sox_ladspa_start()
263 (unsigned)l_st->input_count, effp->in_signal.channels); in sox_ladspa_start()
268 if (l_st->input_count > effp->in_signal.channels) in sox_ladspa_start()
270 (unsigned)l_st->input_count, effp->in_signal.channels); in sox_ladspa_start()
276 if (l_st->output_count != effp->out_signal.channels) { in sox_ladspa_start()
278 effp->out_signal.channels, (unsigned)l_st->output_count); in sox_ladspa_start()
279 effp->out_signal.channels = l_st->output_count; in sox_ladspa_start()
324 static int sox_ladspa_flow(sox_effect_t * effp, const sox_sample_t *ibuf, sox_sample_t *obuf, in sox_ladspa_flow() argument
327 priv_t * l_st = (priv_t *)effp->priv; in sox_ladspa_flow()
357 buf[j * input_len + i] = SOX_SAMPLE_TO_LADSPA_DATA(s, effp->clips); in sox_ladspa_flow()
396 *obuf++ = LADSPA_DATA_TO_SOX_SAMPLE(d, effp->clips); in sox_ladspa_flow()
413 static int sox_ladspa_drain(sox_effect_t * effp, sox_sample_t *obuf, size_t *osamp) in sox_ladspa_drain() argument
415 priv_t * l_st = (priv_t *)effp->priv; in sox_ladspa_drain()
426 isamp = l_st->out_latency * effp->in_signal.channels; in sox_ladspa_drain()
427 dsamp = l_st->out_latency * effp->out_signal.channels; in sox_ladspa_drain()
431 r = sox_ladspa_flow(effp, ibuf, dbuf, &isamp, &dsamp); in sox_ladspa_drain()
445 static int sox_ladspa_stop(sox_effect_t * effp) in sox_ladspa_stop() argument
447 priv_t * l_st = (priv_t *)effp->priv; in sox_ladspa_stop()
463 static int sox_ladspa_kill(sox_effect_t * effp) in sox_ladspa_kill() argument
465 priv_t * l_st = (priv_t *)effp->priv; in sox_ladspa_kill()