diff options
-rw-r--r-- | drumgizmo/drumgizmoc.cc | 9 | ||||
-rw-r--r-- | test/dgreftest/dgreftest.cc | 9 |
2 files changed, 2 insertions, 16 deletions
diff --git a/drumgizmo/drumgizmoc.cc b/drumgizmo/drumgizmoc.cc index 48a17fd..a00a623 100644 --- a/drumgizmo/drumgizmoc.cc +++ b/drumgizmo/drumgizmoc.cc @@ -409,14 +409,7 @@ int main(int argc, char* argv[]) break; } - if(ie->isFreewheeling() && oe->isFreewheeling()) - { - gizmo.setFreeWheel(true); - } - else - { - gizmo.setFreeWheel(false); - } + gizmo.setFreeWheel(ie->isFreewheeling() && oe->isFreewheeling()); } ie->stop(); 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(); |