mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-22 06:36:29 +01:00
Another failed attemt at natural spline interpolation
git-svn-id: svn://localhost/ardour2/branches/3.0@5423 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
793372d7d4
commit
3e88c8aa25
4 changed files with 62 additions and 137 deletions
|
|
@ -26,8 +26,8 @@
|
|||
class InterpolationTest : public CppUnit::TestFixture
|
||||
{
|
||||
CPPUNIT_TEST_SUITE(InterpolationTest);
|
||||
//CPPUNIT_TEST(linearInterpolationTest);
|
||||
CPPUNIT_TEST(splineInterpolationTest);
|
||||
//CPPUNIT_TEST(linearInterpolationTest);
|
||||
//CPPUNIT_TEST(libSamplerateInterpolationTest);
|
||||
CPPUNIT_TEST_SUITE_END();
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ class InterpolationTest : public CppUnit::TestFixture
|
|||
|
||||
void setUp() {
|
||||
for (int i = 0; i < NUM_SAMPLES; ++i) {
|
||||
if (i % INTERVAL == 50) {
|
||||
if (i % INTERVAL == 0) {
|
||||
input[i] = 1.0f;
|
||||
} else {
|
||||
input[i] = 0.0f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue