summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-05-28 21:24:40 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-05-28 21:24:40 +0200
commit1d6833cfcb0b5bf4890fa15b5013d7490af48f69 (patch)
tree1e06841c5047b3fbab6c1df0185b56624bc5adc1 /test
parent028dab3a99d749159ee9cb94796d6e010a64fdcf (diff)
Hand over audio engines to DrumGizmo by reference instead of by pointer.
Diffstat (limited to 'test')
-rw-r--r--test/dgreftest/dgreftest.cc2
-rw-r--r--test/engine.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/dgreftest/dgreftest.cc b/test/dgreftest/dgreftest.cc
index 072dcdc..7d9d00c 100644
--- a/test/dgreftest/dgreftest.cc
+++ b/test/dgreftest/dgreftest.cc
@@ -86,7 +86,7 @@ int main(int argc, char* argv[])
oe->setParm("file", reffile.c_str());
oe->setParm("srate", "44100");
- DrumGizmo drumgizmo(settings, oe.get(), &ie);
+ DrumGizmo drumgizmo(settings, *oe.get(), ie);
drumgizmo.setRandomSeed(seed);
drumgizmo.setFreeWheel(true); // Run in-sync with disk-cache
drumgizmo.setFrameSize(oe->getBufferSize());
diff --git a/test/engine.cc b/test/engine.cc
index 8f417e0..c607ded 100644
--- a/test/engine.cc
+++ b/test/engine.cc
@@ -76,7 +76,7 @@ public:
Settings settings;
AudioOutputEngineDummy oe;
AudioInputEngineDummy ie;
- DrumGizmo dg(settings, &oe, &ie);
+ DrumGizmo dg(settings, oe, ie);
dg.setFrameSize(100);
// Switch kits emmidiately without giving the loader time to work: