History

Fix read and write return types: now st_size_t, like the size inputs.

To support this change, turn on lots more compiler warnings, and fix all the warnings generated.

rrt committed 19 years ago

Commit 4d743c41 parent ce1f8f393 files · +875 −1236Browse files

Showing the changes to src/echo.c (1 of 93 files). Show all

Unified · Split

src/echo.c+6−6
@@ -82,7 +82,7 @@ typedef struct echostuff { · 81 unmodified lines
8282 /*
8383 * Process options
8484 */
85−int st_echo_getopts(eff_t effp, int n, char **argv)
85+static int st_echo_getopts(eff_t effp, int n, char **argv)
8686 {
8787 echo_t echo = (echo_t) effp->priv;
8888 int i;
@@ -113,7 +113,7 @@ int st_echo_getopts(eff_t effp, int n, char **argv) · 24 unmodified lines
113113 /*
114114 * Prepare for processing.
115115 */
116−int st_echo_start(eff_t effp)
116+static int st_echo_start(eff_t effp)
117117 {
118118 echo_t echo = (echo_t) effp->priv;
119119 int i;
@@ -143,7 +143,7 @@ int st_echo_start(eff_t effp) · 23 unmodified lines
143143 st_fail("echo: delay must be positive!");
144144 return (ST_EOF);
145145 }
146− if ( echo->samples[i] > DELAY_BUFSIZ )
146+ if ( echo->samples[i] > (st_ssize_t)DELAY_BUFSIZ )
147147 {
148148 st_fail("echo: delay must be less than %g seconds!",
149149 DELAY_BUFSIZ / (float) effp->ininfo.rate );
@@ -185,7 +185,7 @@ int st_echo_start(eff_t effp) · 35 unmodified lines
185185 * Processed signed long samples from ibuf to obuf.
186186 * Return number of samples processed.
187187 */
188−int st_echo_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
188+static int st_echo_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
189189 st_size_t *isamp, st_size_t *osamp)
190190 {
191191 echo_t echo = (echo_t) effp->priv;
@@ -222,7 +222,7 @@ int st_echo_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, · 30 unmodified lines
222222 /*
223223 * Drain out reverb lines.
224224 */
225−int st_echo_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp)
225+static int st_echo_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp)
226226 {
227227 echo_t echo = (echo_t) effp->priv;
228228 double d_in, d_out;
@@ -262,7 +262,7 @@ int st_echo_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) · 33 unmodified lines
262262 /*
263263 * Clean up reverb effect.
264264 */
265−int st_echo_stop(eff_t effp)
265+static int st_echo_stop(eff_t effp)
266266 {
267267 echo_t echo = (echo_t) effp->priv;
268268

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t