projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
804c8eb
)
[tests] increase pvoc coverage
author
Paul Brossier
<piem@piem.org>
Mon, 26 Nov 2018 10:49:03 +0000
(11:49 +0100)
committer
Paul Brossier
<piem@piem.org>
Mon, 26 Nov 2018 10:49:03 +0000
(11:49 +0100)
tests/src/spectral/test-phasevoc.c
patch
|
blob
|
history
diff --git
a/tests/src/spectral/test-phasevoc.c
b/tests/src/spectral/test-phasevoc.c
index
12af4e6
..
2dec675
100644
(file)
--- a/
tests/src/spectral/test-phasevoc.c
+++ b/
tests/src/spectral/test-phasevoc.c
@@
-13,6
+13,13
@@
int main (void)
// allocate fft and other memory space
aubio_pvoc_t * pv = new_aubio_pvoc(win_s,hop_s);
+ if (new_aubio_pvoc(win_s, 0)) return 1;
+
+ if (aubio_pvoc_get_win(pv) != win_s) return 1;
+ if (aubio_pvoc_get_hop(pv) != hop_s) return 1;
+
+ if (aubio_pvoc_set_window(pv, "hanningz") != 0) return 1;
+
// fill input with some data
fvec_set_all (in, 1.);
fvec_print (in);