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

Unified · Split

src/phaser.c+5−5
@@ -81,7 +81,7 @@ typedef struct phaserstuff { · 80 unmodified lines
8181 /*
8282 * Process options
8383 */
84−int st_phaser_getopts(eff_t effp, int n, char **argv)
84+static int st_phaser_getopts(eff_t effp, int n, char **argv)
8585 {
8686 phaser_t phaser = (phaser_t) effp->priv;
8787
@@ -114,7 +114,7 @@ int st_phaser_getopts(eff_t effp, int n, char **argv) · 26 unmodified lines
114114 /*
115115 * Prepare for processing.
116116 */
117−int st_phaser_start(eff_t effp)
117+static int st_phaser_start(eff_t effp)
118118 {
119119 phaser_t phaser = (phaser_t) effp->priv;
120120 unsigned int i;
@@ -192,7 +192,7 @@ int st_phaser_start(eff_t effp) · 71 unmodified lines
192192 * Processed signed long samples from ibuf to obuf.
193193 * Return number of samples processed.
194194 */
195−int st_phaser_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
195+static int st_phaser_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
196196 st_size_t *isamp, st_size_t *osamp)
197197 {
198198 phaser_t phaser = (phaser_t) effp->priv;
@@ -227,7 +227,7 @@ int st_phaser_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, · 28 unmodified lines
227227 /*
228228 * Drain out reverb lines.
229229 */
230−int st_phaser_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp)
230+static int st_phaser_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp)
231231 {
232232 phaser_t phaser = (phaser_t) effp->priv;
233233 st_size_t done;
@@ -266,7 +266,7 @@ int st_phaser_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp) · 32 unmodified lines
266266 /*
267267 * Clean up phaser effect.
268268 */
269−int st_phaser_stop(eff_t effp)
269+static int st_phaser_stop(eff_t effp)
270270 {
271271 phaser_t phaser = (phaser_t) effp->priv;
272272

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