summaryrefslogtreecommitdiff
path: root/src/libs/sig/sig.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/sig/sig.c')
-rw-r--r--src/libs/sig/sig.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libs/sig/sig.c b/src/libs/sig/sig.c
index cd179e2..fea83b6 100644
--- a/src/libs/sig/sig.c
+++ b/src/libs/sig/sig.c
@@ -83,6 +83,12 @@ int main(int argc, char *argv[])
printf("null output=%f\n", sig_output(sig, 0));
sig = sig_free(sig);
+ sig = sig_new(&sig_ops_rand);
+ for (unsigned j = 0; j < 2; j++) {
+ for (unsigned i = 0; i < 10; i++)
+ printf("rand j=%u i=%u output=%f\n", j, i, sig_output(sig, i));
+ }
+
sig = sig_new(&sig_ops_sin, sig_new(&sig_ops_const, 2.f));
for (unsigned i = 0; i < 1000; i++)
printf("sin 2hz output %i=%f\n", i, sig_output(sig, i));
© All Rights Reserved