From 9b2fdd7bc8bf274e3fe39f28d4b01e5918389d92 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 13 Jul 2016 21:55:26 +0200 Subject: Simplify free wheel loop control a bit. --- test/dgreftest/dgreftest.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'test') diff --git a/test/dgreftest/dgreftest.cc b/test/dgreftest/dgreftest.cc index ead3172..475ea24 100644 --- a/test/dgreftest/dgreftest.cc +++ b/test/dgreftest/dgreftest.cc @@ -144,14 +144,7 @@ int main(int argc, char* argv[]) { pos += nsamples; - if(ie.isFreewheeling() && oe->isFreewheeling()) - { - drumgizmo.setFreeWheel(true); - } - else - { - drumgizmo.setFreeWheel(false); - } + drumgizmo.setFreeWheel(ie.isFreewheeling() && oe.isFreewheeling()); } ie.stop(); -- cgit v1.2.3