More reformatting.
[ahxm.git] / stress.c
blob3edea116ae2328be23f88944c88310c4b55bc00c
1 #include <stdio.h>
3 #include "config.h"
4 #include "ahxm.h"
5 int main(int argc, char *argv[])
7 int n;
8 sample_t s;
9 struct ss_wave *w;
10 printf("load samples/amen1.wav\n");
11 w = ss_load_wav_file("samples/amen1.wav", 440, 440, 440, 0, 0, 0, 0);
12 printf("load some samples from wave\n");
13 for (n = 0; n < 10; n++)
14 printf("%lf\n", ss_get_sample(w, 0, (double) n));
15 printf("again, load same samples from wave\n");
16 for (n = 0; n < 10; n++)
17 printf("%lf\n", ss_get_sample(w, 0, (double) n));
18 return 0;