diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-11-17 03:24:55 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-11-17 03:25:19 (GMT) |
commit | 1b8a5ea6f2f982c5ab3845979e66a58ccd7ef1f0 (patch) | |
tree | 1a9fdcdb3f5dd77a027f88f77707d146deec0f7f /src/aubio-test.c | |
parent | b11f0863f58008fd11ab7d69df960e9f2838e530 (diff) | |
download | mxe-1b8a5ea6f2f982c5ab3845979e66a58ccd7ef1f0.zip mxe-1b8a5ea6f2f982c5ab3845979e66a58ccd7ef1f0.tar.gz mxe-1b8a5ea6f2f982c5ab3845979e66a58ccd7ef1f0.tar.bz2 |
aubio: Add a test program
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/aubio-test.c')
-rw-r--r-- | src/aubio-test.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/aubio-test.c b/src/aubio-test.c new file mode 100644 index 0000000..c7782f0 --- /dev/null +++ b/src/aubio-test.c @@ -0,0 +1,26 @@ +/* + * This file is part of MXE. + * See index.html for further information. + */ + +#include <aubio/aubio.h> + +int main(void) +{ + fvec_t *vec = new_fvec(20); + + fvec_ones(vec); + if (vec->data[0] != 1.) + return 1; + + fvec_zeros(vec); + if (vec->data[0] != 0.) + return 1; + + fvec_print(vec); + + del_fvec(vec); + + return 0; +} + |