Mercurial > hg > qm-dsp
comparison tests/TestPhaseVocoder.cpp @ 338:35db1b24a848
Add another frame
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Tue, 01 Oct 2013 15:38:56 +0100 |
parents | df6ee7f3e3db |
children | f3c69325cca2 |
comparison
equal
deleted
inserted
replaced
337:df6ee7f3e3db | 338:35db1b24a848 |
---|---|
54 double magExpected1[] = { 999, 0, 0, 4, 0, 0, 999 }; | 54 double magExpected1[] = { 999, 0, 0, 4, 0, 0, 999 }; |
55 COMPARE_ARRAY_EXACT(mag, magExpected1); | 55 COMPARE_ARRAY_EXACT(mag, magExpected1); |
56 | 56 |
57 double phaseExpected1[] = { 999, 0, 0, 2 * M_PI, 0, 0, 999 }; | 57 double phaseExpected1[] = { 999, 0, 0, 2 * M_PI, 0, 0, 999 }; |
58 COMPARE_ARRAY(phase, phaseExpected1); | 58 COMPARE_ARRAY(phase, phaseExpected1); |
59 | |
60 pvoc.process(frame, mag + 1, phase + 1); | |
61 | |
62 double magExpected2[] = { 999, 0, 0, 4, 0, 0, 999 }; | |
63 COMPARE_ARRAY_EXACT(mag, magExpected2); | |
64 | |
65 double phaseExpected2[] = { 999, 0, 0, 4 * M_PI, 0, 0, 999 }; | |
66 COMPARE_ARRAY(phase, phaseExpected2); | |
59 } | 67 } |
60 | 68 |
61 BOOST_AUTO_TEST_SUITE_END() | 69 BOOST_AUTO_TEST_SUITE_END() |
62 | 70 |