summaryrefslogtreecommitdiff
path: root/src/audioinputengine.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-05-01 21:36:04 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-05-08 12:16:21 +0200
commit42953944da1261584d56405128c6eb3c0e9e7da0 (patch)
tree1f150ce606457a0bea5647374e0719ecd9646f01 /src/audioinputengine.h
parentf8feb953c6d86bee12747679e5e4dac7795a65d0 (diff)
The last loader thread stuff.
Diffstat (limited to 'src/audioinputengine.h')
-rw-r--r--src/audioinputengine.h26
1 files changed, 11 insertions, 15 deletions
diff --git a/src/audioinputengine.h b/src/audioinputengine.h
index 1701864..bb7131c 100644
--- a/src/audioinputengine.h
+++ b/src/audioinputengine.h
@@ -24,8 +24,7 @@
* along with DrumGizmo; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#ifndef __DRUMGIZMO_AUDIOINPUTENGINE_H__
-#define __DRUMGIZMO_AUDIOINPUTENGINE_H__
+#pragma once
#include <string>
#include <vector>
@@ -34,22 +33,19 @@
#include "instrument.h"
-class AudioInputEngine {
+class AudioInputEngine
+{
public:
- virtual ~AudioInputEngine() {}
+ virtual ~AudioInputEngine() = default;
- virtual bool isMidiEngine() const { return false; }
+ virtual bool init(const Instruments& instruments) = 0;
- virtual bool init(const Instruments& instruments) = 0;
+ virtual void setParm(const std::string& parm, const std::string& value) = 0;
- virtual void setParm(const std::string& parm, const std::string& value) = 0;
+ virtual bool start() = 0;
+ virtual void stop() = 0;
- virtual bool start() = 0;
- virtual void stop() = 0;
-
- virtual void pre() = 0;
- virtual void run(size_t pos, size_t len, std::vector<event_t>& events) = 0;
- virtual void post() = 0;
+ virtual void pre() = 0;
+ virtual void run(size_t pos, size_t len, std::vector<event_t>& events) = 0;
+ virtual void post() = 0;
};
-
-#endif/*__DRUMGIZMO_AUDIOINPUTENGINE_H__*/