1 #include "ardour/resampled_source.h"
2 #include "ardour/sndfileimportable.h"
3 #include "resampled_source_test.h"
5 CPPUNIT_TEST_SUITE_REGISTRATION (ResampledSourceTest);
7 using namespace ARDOUR;
10 ResampledSourceTest::seekTest ()
12 boost::shared_ptr<SndFileImportableSource> s (new SndFileImportableSource ("../libs/ardour/test/data/test.wav"));
13 ResampledImportableSource r (s, 48000, SrcBest);
15 /* Make sure that seek (0) has the desired effect, ie that
16 given the same input you get the same output after seek (0)
17 as you got when the Source was newly created.
28 for (int i = 0; i < 64; ++i) {
29 CPPUNIT_ASSERT (A[i] == B[i]);