summaryrefslogtreecommitdiffstats
path: root/src/aubio-test.c
blob: 083b473d8bd7d3750184aa7110a351297d21e80f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * This file is part of MXE. See LICENSE.md for licensing 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;
}