mirror of https://git.wownero.com/dsc/mxe.git
aubio: Add a test program
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
parent
b11f0863f5
commit
1b8a5ea6f2
|
@ -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;
|
||||
}
|
||||
|
|
@ -34,4 +34,8 @@ define $(PKG)_BUILD
|
|||
$(if $(BUILD_SHARED), \
|
||||
mv '$(PREFIX)/$(TARGET)/lib/libaubio-4.dll' '$(PREFIX)/$(TARGET)/bin')
|
||||
|
||||
'$(TARGET)-gcc' \
|
||||
-W -Wall -Werror -ansi -pedantic \
|
||||
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-aubio.exe' \
|
||||
`'$(TARGET)-pkg-config' aubio --cflags --libs`
|
||||
endef
|
||||
|
|
Loading…
Reference in New Issue