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
81/*81/*
82 * Process options82 * Process options
83 */83 */
84int st_phaser_getopts(eff_t effp, int n, char **argv) 84static int st_phaser_getopts(eff_t effp, int n, char **argv)
85{85{
86 phaser_t phaser = (phaser_t) effp->priv;86 phaser_t phaser = (phaser_t) effp->priv;
87 87
@@ -114,7 +114,7 @@ int st_phaser_getopts(eff_t effp, int n, char **argv) · 26 unmodified lines
114/*114/*
115 * Prepare for processing.115 * Prepare for processing.
116 */116 */
117int st_phaser_start(eff_t effp)117static int st_phaser_start(eff_t effp)
118{118{
119 phaser_t phaser = (phaser_t) effp->priv;119 phaser_t phaser = (phaser_t) effp->priv;
120 unsigned int i;120 unsigned int i;
@@ -192,7 +192,7 @@ int st_phaser_start(eff_t effp) · 71 unmodified lines
192 * Processed signed long samples from ibuf to obuf.192 * Processed signed long samples from ibuf to obuf.
193 * Return number of samples processed.193 * Return number of samples processed.
194 */194 */
195int st_phaser_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf, 195static int st_phaser_flow(eff_t effp, const st_sample_t *ibuf, st_sample_t *obuf,
196 st_size_t *isamp, st_size_t *osamp)196 st_size_t *isamp, st_size_t *osamp)
197{197{
198 phaser_t phaser = (phaser_t) effp->priv;198 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
227/*227/*
228 * Drain out reverb lines. 228 * Drain out reverb lines.
229 */229 */
230int st_phaser_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp)230static int st_phaser_drain(eff_t effp, st_sample_t *obuf, st_size_t *osamp)
231{231{
232 phaser_t phaser = (phaser_t) effp->priv;232 phaser_t phaser = (phaser_t) effp->priv;
233 st_size_t done;233 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
266/*266/*
267 * Clean up phaser effect.267 * Clean up phaser effect.
268 */268 */
269int st_phaser_stop(eff_t effp)269static int st_phaser_stop(eff_t effp)
270{270{
271 phaser_t phaser = (phaser_t) effp->priv;271 phaser_t phaser = (phaser_t) effp->priv;
272 272

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