comparison dsp/rateconversion/TestResampler.cpp @ 140:ce50eef47bdf

Latency fix etc
author Chris Cannam
date Mon, 14 Oct 2013 08:19:45 +0100
parents 7fe0da91e9c3
children 54c9e0811ae7
comparison
equal deleted inserted replaced
139:7fe0da91e9c3 140:ce50eef47bdf
95 } 95 }
96 delete[] outPadded; 96 delete[] outPadded;
97 delete[] inPadded; 97 delete[] inPadded;
98 } 98 }
99 99
100 BOOST_AUTO_TEST_CASE(sameRateOneShot)
101 {
102 double d[] = { 0, 0.1, -0.3, -0.4, -0.3, 0, 0.5, 0.2, 0.8, -0.1 };
103 testResamplerOneShot(4, 4, 10, d, 10, d);
104 }
105
100 BOOST_AUTO_TEST_CASE(sameRate) 106 BOOST_AUTO_TEST_CASE(sameRate)
101 { 107 {
102 double d[] = { 0, 0.1, -0.3, -0.4, -0.3, 0, 0.5, 0.2, 0.8, -0.1 }; 108 double d[] = { 0, 0.1, -0.3, -0.4, -0.3, 0, 0.5, 0.2, 0.8, -0.1 };
103 testResamplerOneShot(4, 4, 10, d, 10, d);
104 testResampler(4, 4, 10, d, 10, d); 109 testResampler(4, 4, 10, d, 10, d);
105 } 110 }
106 111
107 BOOST_AUTO_TEST_SUITE_END() 112 BOOST_AUTO_TEST_SUITE_END()
108 113