summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-06-28 20:15:08 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-01-20 13:30:25 +0100
commite9f7a6cf9ad65526d71bddbf71f4c53fe5451001 (patch)
tree7178d5c7dfcce3b79613cd37e57eab57f0733495
parent1844f89239a8f873aae9dec8375087606b9a4541 (diff)
Fix unit tests to run with new setFramesize feature.
-rw-r--r--test/cachemanagertest.cc4
-rw-r--r--test/engine.cc1
2 files changed, 5 insertions, 0 deletions
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 <cachemanager.h>
#include <unistd.h>
+#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++) {