1 #include <stdlib.h>
2 #include <stdio.h>
3 #include "soundpipe.h"
4 #include "config.h"
5 
main()6 int main() {
7     sp_data *sp;
8     sp_create(&sp);
9     sp_srand(sp, 12345);
10     sp->sr = SR;
11     sp->len = sp->sr * LEN;
12     uint32_t t, u;
13     SPFLOAT in = 0, out = 0;
14 
15     sp_mincer *unit[NUM];
16     sp_ftbl *wav;
17 
18     sp_ftbl_loadfile(sp, &wav, SAMPDIR "oneart.wav");
19 
20     for(u = 0; u < NUM; u++) {
21         sp_mincer_create(&unit[u]);
22         sp_mincer_init(sp, unit[u], wav, 2048);
23     }
24 
25     for(t = 0; t < sp->len; t++) {
26         for(u = 0; u < NUM; u++) sp_mincer_compute(sp, unit[u], &in, &out);
27     }
28 
29     for(u = 0; u < NUM; u++) sp_mincer_destroy(&unit[u]);
30 
31     sp_destroy(&sp);
32     sp_ftbl_destroy(&wav);
33     return 0;
34 }
35 
36