summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drumgizmo/drumgizmoc.cc9
-rw-r--r--test/dgreftest/dgreftest.cc9
2 files changed, 18 insertions, 0 deletions
diff --git a/drumgizmo/drumgizmoc.cc b/drumgizmo/drumgizmoc.cc
index 1ba9516..48a17fd 100644
--- a/drumgizmo/drumgizmoc.cc
+++ b/drumgizmo/drumgizmoc.cc
@@ -408,6 +408,15 @@ int main(int argc, char* argv[])
{
break;
}
+
+ if(ie->isFreewheeling() && oe->isFreewheeling())
+ {
+ gizmo.setFreeWheel(true);
+ }
+ else
+ {
+ gizmo.setFreeWheel(false);
+ }
}
ie->stop();
diff --git a/test/dgreftest/dgreftest.cc b/test/dgreftest/dgreftest.cc
index 0147244..ead3172 100644
--- a/test/dgreftest/dgreftest.cc
+++ b/test/dgreftest/dgreftest.cc
@@ -143,6 +143,15 @@ int main(int argc, char* argv[])
while(drumgizmo.run(pos, samples, nsamples) == true)
{
pos += nsamples;
+
+ if(ie.isFreewheeling() && oe->isFreewheeling())
+ {
+ drumgizmo.setFreeWheel(true);
+ }
+ else
+ {
+ drumgizmo.setFreeWheel(false);
+ }
}
ie.stop();