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
30/*30/*
31 * Process options31 * Process options
32 */32 */
33int st_pan_getopts(eff_t effp, int n, char **argv) 33static int st_pan_getopts(eff_t effp, int n, char **argv)
34{34{
35 pan_t pan = (pan_t) effp->priv; 35 pan_t pan = (pan_t) effp->priv;
36 36
@@ -49,7 +49,7 @@ int st_pan_getopts(eff_t effp, int n, char **argv) · 12 unmodified lines
49/*49/*
50 * Start processing50 * Start processing
51 */51 */
52int st_pan_start(eff_t effp)52static int st_pan_start(eff_t effp)
53{53{
54 if (effp->outinfo.channels==1)54 if (effp->outinfo.channels==1)
55 st_warn("PAN onto a mono channel...");55 st_warn("PAN onto a mono channel...");
@@ -73,7 +73,7 @@ int st_pan_start(eff_t effp) · 17 unmodified lines
73/*73/*
74 * Process either isamp or osamp samples, whichever is smaller.74 * Process either isamp or osamp samples, whichever is smaller.
75 */75 */
76int st_pan_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, 76static int st_pan_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
77 st_size_t *isamp, st_size_t *osamp)77 st_size_t *isamp, st_size_t *osamp)
78{78{
79 pan_t pan = (pan_t) effp->priv;79 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
408}408}
409 409
410/*410/*
411 * Do anything required when you stop reading samples. 411 * FIXME: Add a stop function with statistics on right, left, and output amplitudes.
412 * Don't close input file!
413 *
414 * Should have statistics on right, left, and output amplitudes.
415 */412 */
416int st_pan_stop(eff_t effp)
417{
418 return ST_SUCCESS;
419}
420 413
421static st_effect_t st_pan_effect = {414static st_effect_t st_pan_effect = {
422 "pan",415 "pan",
@@ -426,7 +419,7 @@ static st_effect_t st_pan_effect = { · 3 unmodified lines
426 st_pan_start,419 st_pan_start,
427 st_pan_flow,420 st_pan_flow,
428 st_effect_nothing_drain,421 st_effect_nothing_drain,
429 st_pan_stop422 st_effect_nothing
430};423};
431 424
432const st_effect_t *st_pan_effect_fn(void)425const 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