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, out1 = 0, out2 = 0;
14 
15     sp_hilbert *unit[NUM];
16 
17     for(u = 0; u < NUM; u++) {
18         sp_hilbert_create(&unit[u]);
19         sp_hilbert_init(sp, unit[u]);
20     }
21 
22     for(t = 0; t < sp->len; t++) {
23         for(u = 0; u < NUM; u++) sp_hilbert_compute(sp, unit[u], &in,
24                 &out1, &out2);
25     }
26 
27     for(u = 0; u < NUM; u++) sp_hilbert_destroy(&unit[u]);
28 
29     sp_destroy(&sp);
30     return 0;
31 }
32 
33