From 2ea8d76cdea0dee68fa53ab6c23bbb8e74b63811 Mon Sep 17 00:00:00 2001 From: Angel Ortega Date: Tue, 1 Feb 2011 16:39:56 +0100 Subject: [PATCH] Fixed stress.c. --- stress.c | 47 ++++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 21 deletions(-) rewrite stress.c (89%) mode change 100644 => 100755 diff --git a/stress.c b/stress.c old mode 100644 new mode 100755 dissimilarity index 89% index 3edea11..b92961b --- a/stress.c +++ b/stress.c @@ -1,21 +1,26 @@ -#include - -#include "config.h" -#include "ahxm.h" - int main(int argc, char *argv[]) -{ - int n; - sample_t s; - struct ss_wave *w; - printf("load samples/amen1.wav\n"); - w = ss_load_wav_file("samples/amen1.wav", 440, 440, 440, 0, 0, 0, 0); - printf("load some samples from wave\n"); - for (n = 0; n < 10; n++) - printf("%lf\n", ss_get_sample(w, 0, (double) n)); - printf("again, load same samples from wave\n"); - for (n = 0; n < 10; n++) - printf("%lf\n", ss_get_sample(w, 0, (double) n)); - return 0; - } - - +#include + +#include "config.h" +#include "ahxm.h" + +int main(int argc, char *argv[]) +{ + int n; + sample_t s; + struct ss_wave *w; + + printf("load samples/amen1.wav\n"); + w = ss_load_wav_file("samples/amen1.wav", 440, 440, 440, 0, 0, 0, 0); + + printf("load some samples from wave\n"); + + for (n = 0; n < 10; n++) + printf("%lf\n", ss_get_sample(w, 0, (double) n)); + + printf("again, load same samples from wave\n"); + + for (n = 0; n < 10; n++) + printf("%lf\n", ss_get_sample(w, 0, (double) n)); + + return 0; +} -- 2.11.4.GIT