summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2016-07-13 18:32:52 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2016-07-13 18:32:52 +0200
commiteb3a5e8834c1af80fc5196e5c8f5788e8a2b2167 (patch)
tree51b315faab10b1fdbb6508d6f89d818024a6cefb /test
parent32606894c67e6be27ba853a8bc3e97c808c14987 (diff)
Introduce input engine isFreewheeling method.
Diffstat (limited to 'test')
-rw-r--r--test/dgreftest/midiinputengine.cc5
-rw-r--r--test/dgreftest/midiinputengine.h1
-rw-r--r--test/engine.cc1
3 files changed, 7 insertions, 0 deletions
diff --git a/test/dgreftest/midiinputengine.cc b/test/dgreftest/midiinputengine.cc
index bc0fa87..aba726f 100644
--- a/test/dgreftest/midiinputengine.cc
+++ b/test/dgreftest/midiinputengine.cc
@@ -190,3 +190,8 @@ void MidifileInputEngine::run(size_t pos, size_t len, std::vector<event_t>& even
void MidifileInputEngine::post()
{
}
+
+bool MidifileInputEngine::isFreewheeling() const
+{
+ return true;
+}
diff --git a/test/dgreftest/midiinputengine.h b/test/dgreftest/midiinputengine.h
index 3740d44..a752ff5 100644
--- a/test/dgreftest/midiinputengine.h
+++ b/test/dgreftest/midiinputengine.h
@@ -50,6 +50,7 @@ public:
void pre() override;
void run(size_t pos, size_t len, std::vector<event_t>& events) override;
void post() override;
+ bool isFreewheeling() const override;
private:
smf_t* smf;
diff --git a/test/engine.cc b/test/engine.cc
index 11fa720..96d513f 100644
--- a/test/engine.cc
+++ b/test/engine.cc
@@ -60,6 +60,7 @@ public:
void pre() {}
void run(size_t pos, size_t len, std::vector<event_t>& events) {}
void post() {}
+ bool isFreewheeling() const { return true; }
};
class test_engine : public CppUnit::TestFixture