]>
jfr.im git - irc/quakenet/newserv.git/blob - graphing/dump.c
5 int dump(fsample_m
*f
, fsample_t start
, fsample_t stop
) {
8 for(i
=start
;i
<stop
;i
++) {
10 for(j
=0;j
<f
->pos
;j
++) {
12 int moo
= fsget_m(f
, j
, i
, &t
);
15 int moo2
= fsget_mr(f
, j
, i
, &t
);
16 printf("X%2d(%2d) ", t
, moo2
);
18 printf(" %2d(%2d) ", t
, moo
);
28 int main(int cargc
, char **cargv
) {
30 int stop
= time(NULL
) / GRAPHING_RESOLUTION
;
35 f
= fsopen_m(0, cargv
[1], SAMPLES
);
39 dump(f
, stop
- 100, stop
);