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
42/*42/*
43 * Process options43 * Process options
44 */44 */
45int st_lowp_getopts(eff_t effp, int n, char **argv) 45static int st_lowp_getopts(eff_t effp, int n, char **argv)
46{46{
47 lowp_t lowp = (lowp_t) effp->priv;47 lowp_t lowp = (lowp_t) effp->priv;
48 48
@@ -57,7 +57,7 @@ int st_lowp_getopts(eff_t effp, int n, char **argv) · 8 unmodified lines
57/*57/*
58 * Prepare processing.58 * Prepare processing.
59 */59 */
60int st_lowp_start(eff_t effp)60static int st_lowp_start(eff_t effp)
61{61{
62 lowp_t lowp = (lowp_t) effp->priv;62 lowp_t lowp = (lowp_t) effp->priv;
63 if (lowp->cutoff > effp->ininfo.rate / 2)63 if (lowp->cutoff > effp->ininfo.rate / 2)
@@ -96,7 +96,7 @@ int st_lowp_start(eff_t effp) · 32 unmodified lines
96 * Processed signed long samples from ibuf to obuf.96 * Processed signed long samples from ibuf to obuf.
97 * Return number of samples processed.97 * Return number of samples processed.
98 */98 */
99int st_lowp_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, 99static int st_lowp_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
100 st_size_t *isamp, st_size_t *osamp)100 st_size_t *isamp, st_size_t *osamp)
101{101{
102 lowp_t lowp = (lowp_t) effp->priv;102 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
118 return (ST_SUCCESS);118 return (ST_SUCCESS);
119}119}
120 120
121/*
122 * Do anything required when you stop reading samples.
123 * Don't close input file!
124 */
125int st_lowp_stop(eff_t effp)
126{
127 /* nothing to do */
128 return (ST_SUCCESS);
129}
130
131static st_effect_t st_lowp_effect = {121static st_effect_t st_lowp_effect = {
132 "lowp",122 "lowp",
133 "Usage: lowp cutoff",123 "Usage: lowp cutoff",
@@ -136,7 +126,7 @@ static st_effect_t st_lowp_effect = { · 2 unmodified lines
136 st_lowp_start,126 st_lowp_start,
137 st_lowp_flow,127 st_lowp_flow,
138 st_effect_nothing_drain,128 st_effect_nothing_drain,
139 st_lowp_stop129 st_effect_nothing
140};130};
141 131
142const st_effect_t *st_lowp_effect_fn(void)132const 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