summaryrefslogtreecommitdiffstats
path: root/src/aubio-test.c
blob: c7782f04532b4f416ca1adc3d0ba3e074eabbd20 (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
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;
}