shithub: sox

Download patch

ref: 0fab6d08bb65627beb96e2a1e5e5457c65ba2f4f
parent: 494f7e042774e19e456d9466e7c2f2b6ca59cd84
author: rrt <rrt>
date: Fri Jan 5 20:07:30 EST 2007

Correct type of st_effect_nothing_flow

--- a/src/misc.c
+++ b/src/misc.c
@@ -443,7 +443,7 @@
   return ST_SUCCESS;
 }
 
-int st_effect_nothing_flow(eff_t effp UNUSED, st_sample_t *ibuf UNUSED, st_sample_t *obuf UNUSED, st_size_t *isamp, st_size_t *osamp)
+int st_effect_nothing_flow(eff_t effp UNUSED, const st_sample_t *ibuf UNUSED, st_sample_t *obuf UNUSED, st_size_t *isamp, st_size_t *osamp)
 {
   /* Pass through samples verbatim */
   *isamp = *osamp = min(*isamp, *osamp);
--- a/src/st_i.h
+++ b/src/st_i.h
@@ -247,7 +247,7 @@
 st_size_t st_format_nothing_write_io(ft_t ft, const st_sample_t *buf, st_size_t len);
 int st_format_nothing_seek(ft_t ft, st_size_t offset);
 int st_effect_nothing(eff_t effp);
-int st_effect_nothing_flow(eff_t effp, st_sample_t *ibuf, st_sample_t *obuf, st_size_t *isamp, st_size_t *osamp);
+int st_effect_nothing_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, st_size_t *isamp, st_size_t *osamp);
 int st_effect_nothing_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp);
 int st_effect_nothing_getopts(eff_t effp, int n, char **argv UNUSED);