From 32606894c67e6be27ba853a8bc3e97c808c14987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Wed, 13 Jul 2016 16:33:11 +0200 Subject: Introduce output engine isFreewheeling method. --- test/dgreftest/compareoutputengine.cc | 5 +++++ test/dgreftest/compareoutputengine.h | 1 + test/dgreftest/wavfileoutputengine.cc | 5 +++++ test/dgreftest/wavfileoutputengine.h | 1 + test/engine.cc | 1 + 5 files changed, 13 insertions(+) (limited to 'test') 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; diff --git a/test/engine.cc b/test/engine.cc index c607ded..11fa720 100644 --- a/test/engine.cc +++ b/test/engine.cc @@ -43,6 +43,7 @@ public: void pre(size_t nsamples) {} void run(int ch, sample_t *samples, size_t nsamples) {} void post(size_t nsamples) {} + bool isFreewheeling() const { return true; } }; class AudioInputEngineDummy -- cgit v1.2.3