6 int main(int argc
, char **argv
)
13 if (wavefile_open(&wf
, "/home/aoe/reflections.wav") != 0){
14 fprintf(stderr
, "cannot open wave file\n");
22 if (soundout_open(&so
, &af
) != 0){
23 fprintf(stderr
, "cannot open audio output device\n");
28 ef1
= silly_effect_create();
34 if (wavefile_read_at(&wf
, pos
, buf
, 4410) != 0){
38 ef1
->vtab
->process(ef1
, &buf_ptr
, 4410);
39 soundout_write(&so
, buf
, 4410 * 4);