Mercurial > hg > qm-dsp
changeset 113:3cb359d043f0 pvoc
Add another frame
author | Chris Cannam |
---|---|
date | Tue, 01 Oct 2013 15:38:56 +0100 |
parents | 55b86acdc740 |
children | f6ccde089491 |
files | tests/TestPhaseVocoder.cpp |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/TestPhaseVocoder.cpp Tue Oct 01 15:35:55 2013 +0100 +++ b/tests/TestPhaseVocoder.cpp Tue Oct 01 15:38:56 2013 +0100 @@ -56,6 +56,14 @@ double phaseExpected1[] = { 999, 0, 0, 2 * M_PI, 0, 0, 999 }; COMPARE_ARRAY(phase, phaseExpected1); + + pvoc.process(frame, mag + 1, phase + 1); + + double magExpected2[] = { 999, 0, 0, 4, 0, 0, 999 }; + COMPARE_ARRAY_EXACT(mag, magExpected2); + + double phaseExpected2[] = { 999, 0, 0, 4 * M_PI, 0, 0, 999 }; + COMPARE_ARRAY(phase, phaseExpected2); } BOOST_AUTO_TEST_SUITE_END()