ref: d9be44d4a44ae1be8ba6db5763a5ddbf89d12302
parent: c468b5d2a04728c57718af316fe87f29b60950c4
author: robs <robs>
date: Wed May 20 12:26:58 EDT 2009
vad effect
--- a/src/speed.c
+++ b/src/speed.c
@@ -59,19 +59,10 @@
return SOX_SUCCESS;
}
-static int flow(sox_effect_t * effp, const sox_sample_t * ibuf,
- sox_sample_t * obuf, size_t * isamp, size_t * osamp)
-{
- size_t len = *isamp = *osamp = min(*isamp, *osamp);
- memcpy(obuf, ibuf, len * sizeof(*osamp));
- (void)effp;
- return SOX_SUCCESS;
-}
-
sox_effect_handler_t const * lsx_speed_effect_fn(void)
{
static sox_effect_handler_t handler = {
"speed", "factor[c]",SOX_EFF_NULL|SOX_EFF_MCHAN|SOX_EFF_RATE|SOX_EFF_LENGTH,
- getopts, start, flow, 0, 0, 0, sizeof(priv_t)};
+ getopts, start, lsx_flow_copy, 0, 0, 0, sizeof(priv_t)};
return &handler;
}