summaryrefslogtreecommitdiff
path: root/test/dgreftest
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2016-07-13 16:33:11 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2016-07-13 17:28:11 +0200
commit32606894c67e6be27ba853a8bc3e97c808c14987 (patch)
treef31c9d1bc08e2095b2cd724b5f0f0a27526c5a01 /test/dgreftest
parentd71485534d3a683cae4993815f59ff68263a6751 (diff)
Introduce output engine isFreewheeling method.
Diffstat (limited to 'test/dgreftest')
-rw-r--r--test/dgreftest/compareoutputengine.cc5
-rw-r--r--test/dgreftest/compareoutputengine.h1
-rw-r--r--test/dgreftest/wavfileoutputengine.cc5
-rw-r--r--test/dgreftest/wavfileoutputengine.h1
4 files changed, 12 insertions, 0 deletions
diff --git a/test/dgreftest/compareoutputengine.cc b/test/dgreftest/compareoutputengine.cc
index 4b13566..33dfe2a 100644
--- a/test/dgreftest/compareoutputengine.cc
+++ b/test/dgreftest/compareoutputengine.cc
@@ -136,3 +136,8 @@ size_t CompareOutputEngine::getSamplerate() const
{
return info.samplerate;
}
+
+bool CompareOutputEngine::isFreewheeling() const
+{
+ return true;
+}
diff --git a/test/dgreftest/compareoutputengine.h b/test/dgreftest/compareoutputengine.h
index fb610d6..a82116c 100644
--- a/test/dgreftest/compareoutputengine.h
+++ b/test/dgreftest/compareoutputengine.h
@@ -45,6 +45,7 @@ public:
void run(int ch, sample_t* samples, size_t nsamples) override;
void post(size_t nsamples) override;
size_t getSamplerate() const override;
+ bool isFreewheeling() const override;
private:
SF_INFO info;
diff --git a/test/dgreftest/wavfileoutputengine.cc b/test/dgreftest/wavfileoutputengine.cc
index 6f971ad..e24a315 100644
--- a/test/dgreftest/wavfileoutputengine.cc
+++ b/test/dgreftest/wavfileoutputengine.cc
@@ -123,3 +123,8 @@ size_t WavfileOutputEngine::getSamplerate() const
{
return info.samplerate;
}
+
+bool WavfileOutputEngine::isFreewheeling() const
+{
+ return true;
+}
diff --git a/test/dgreftest/wavfileoutputengine.h b/test/dgreftest/wavfileoutputengine.h
index 6937ed2..4a618ed 100644
--- a/test/dgreftest/wavfileoutputengine.h
+++ b/test/dgreftest/wavfileoutputengine.h
@@ -45,6 +45,7 @@ public:
void run(int ch, sample_t* samples, size_t nsamples) override;
void post(size_t nsamples) override;
size_t getSamplerate() const override;
+ bool isFreewheeling() const override;
private:
SF_INFO info;