source:
tests/src/test-lvec.c
@
f9ed504
Last change on this file since f9ed504 was 7a62fcb, checked in by , 9 years ago | |
---|---|
|
|
File size: 376 bytes |
Rev | Line | |
---|---|---|
[332487b] | 1 | #include "aubio.h" |
[175a218] | 2 | #include "utils_tests.h" |
[cd60b5c] | 3 | |
[158e031] | 4 | int main (void) |
[7e35b37] | 5 | { |
[175a218] | 6 | uint_t win_s = 32; // window size |
[7e35b37] | 7 | lvec_t * sp = new_lvec (win_s); // input buffer |
[175a218] | 8 | lvec_set_sample (sp, 2./3., 0); |
[7a62fcb] | 9 | PRINT_MSG(AUBIO_LSMP_FMT "\n", lvec_get_sample (sp, 0)); |
[175a218] | 10 | lvec_print (sp); |
11 | lvec_ones (sp); | |
12 | lvec_print (sp); | |
13 | lvec_set_all (sp, 3./5.); | |
14 | lvec_print (sp); | |
[7e35b37] | 15 | del_lvec(sp); |
16 | return 0; | |
[cd60b5c] | 17 | } |
18 |
Note: See TracBrowser
for help on using the repository browser.