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

Unified · Split

src/lowp.c+4−14
@@ -42,7 +42,7 @@ typedef struct lowpstuff { · 41 unmodified lines
4242 /*
4343 * Process options
4444 */
45−int st_lowp_getopts(eff_t effp, int n, char **argv)
45+static int st_lowp_getopts(eff_t effp, int n, char **argv)
4646 {
4747 lowp_t lowp = (lowp_t) effp->priv;
4848
@@ -57,7 +57,7 @@ int st_lowp_getopts(eff_t effp, int n, char **argv) · 8 unmodified lines
5757 /*
5858 * Prepare processing.
5959 */
60−int st_lowp_start(eff_t effp)
60+static int st_lowp_start(eff_t effp)
6161 {
6262 lowp_t lowp = (lowp_t) effp->priv;
6363 if (lowp->cutoff > effp->ininfo.rate / 2)
@@ -96,7 +96,7 @@ int st_lowp_start(eff_t effp) · 32 unmodified lines
9696 * Processed signed long samples from ibuf to obuf.
9797 * Return number of samples processed.
9898 */
99−int st_lowp_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
99+static int st_lowp_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
100100 st_size_t *isamp, st_size_t *osamp)
101101 {
102102 lowp_t lowp = (lowp_t) effp->priv;
@@ -118,16 +118,6 @@ int st_lowp_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, · 15 unmodified lines
118118 return (ST_SUCCESS);
119119 }
120120
121−/*
122− * Do anything required when you stop reading samples.
123− * Don't close input file!
124− */
125−int st_lowp_stop(eff_t effp)
126−{
127− /* nothing to do */
128− return (ST_SUCCESS);
129−}
130−
131121 static st_effect_t st_lowp_effect = {
132122 "lowp",
133123 "Usage: lowp cutoff",
@@ -136,7 +126,7 @@ static st_effect_t st_lowp_effect = { · 2 unmodified lines
136126 st_lowp_start,
137127 st_lowp_flow,
138128 st_effect_nothing_drain,
139− st_lowp_stop
129+ st_effect_nothing
140130 };
141131
142132 const st_effect_t *st_lowp_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