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/pan.c (1 of 93 files). Show all

Unified · Split

src/pan.c+5−12
@@ -30,7 +30,7 @@ typedef struct { · 29 unmodified lines
3030 /*
3131 * Process options
3232 */
33−int st_pan_getopts(eff_t effp, int n, char **argv)
33+static int st_pan_getopts(eff_t effp, int n, char **argv)
3434 {
3535 pan_t pan = (pan_t) effp->priv;
3636
@@ -49,7 +49,7 @@ int st_pan_getopts(eff_t effp, int n, char **argv) · 12 unmodified lines
4949 /*
5050 * Start processing
5151 */
52−int st_pan_start(eff_t effp)
52+static int st_pan_start(eff_t effp)
5353 {
5454 if (effp->outinfo.channels==1)
5555 st_warn("PAN onto a mono channel...");
@@ -73,7 +73,7 @@ int st_pan_start(eff_t effp) · 17 unmodified lines
7373 /*
7474 * Process either isamp or osamp samples, whichever is smaller.
7575 */
76−int st_pan_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
76+static int st_pan_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
7777 st_size_t *isamp, st_size_t *osamp)
7878 {
7979 pan_t pan = (pan_t) effp->priv;
@@ -408,15 +408,8 @@ int st_pan_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, · 328 unmodified lines
408408 }
409409
410410 /*
411− * Do anything required when you stop reading samples.
412− * Don't close input file!
413− *
414− * Should have statistics on right, left, and output amplitudes.
411+ * FIXME: Add a stop function with statistics on right, left, and output amplitudes.
415412 */
416−int st_pan_stop(eff_t effp)
417−{
418− return ST_SUCCESS;
419−}
420413
421414 static st_effect_t st_pan_effect = {
422415 "pan",
@@ -426,7 +419,7 @@ static st_effect_t st_pan_effect = { · 3 unmodified lines
426419 st_pan_start,
427420 st_pan_flow,
428421 st_effect_nothing_drain,
429− st_pan_stop
422+ st_effect_nothing
430423 };
431424
432425 const st_effect_t *st_pan_effect_fn(void)

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