From 79e1c5eb90fb754f6cd40f5e32d9a1b7284c9717 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 28 Jun 2015 20:15:08 +0200 Subject: Fix unit tests to run with new setFramesize feature. --- test/cachemanagertest.cc | 4 ++++ test/engine.cc | 1 + 2 files changed, 5 insertions(+) diff --git a/test/cachemanagertest.cc b/test/cachemanagertest.cc index ae346db..e1d8289 100644 --- a/test/cachemanagertest.cc +++ b/test/cachemanagertest.cc @@ -29,6 +29,8 @@ #include #include +#define FRAMESIZE 1024 + class test_cachemanager : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(test_cachemanager); @@ -60,6 +62,8 @@ public: printf("cm.init\n"); cm.init(100, threaded); + cm.setFrameSize(FRAMESIZE); + cacheid_t id; // TODO: test 0 ... FRAMESIZE - 1 size_t initial_samples_needed = (FRAMESIZE - 1) / 2; diff --git a/test/engine.cc b/test/engine.cc index 69d2a37..4c49a6c 100644 --- a/test/engine.cc +++ b/test/engine.cc @@ -43,6 +43,7 @@ public: AudioOutputEngine *oe = NULL; AudioInputEngine *ie = NULL; DrumGizmo dg(oe, ie); + dg.setFrameSize(100); // Switch kits emmidiately with giving the loader time to work: for(int i = 0; i < 100; i++) { -- cgit v1.2.3