summaryrefslogtreecommitdiff
path: root/src/audioinputengine.h
diff options
context:
space:
mode:
authordeva <deva>2011-07-15 13:02:33 +0000
committerdeva <deva>2011-07-15 13:02:33 +0000
commitcd0e36773992e26985bdec1f7a5341f83fa3e521 (patch)
tree4710fb3f2465f4b464f5f6176261a67cfde2e46e /src/audioinputengine.h
parente190d38057892b69246391841b234a368bc2b4ad (diff)
New input/output plugin architecture. New LV2 plugin.
Diffstat (limited to 'src/audioinputengine.h')
-rw-r--r--src/audioinputengine.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/audioinputengine.h b/src/audioinputengine.h
index d10a31c..c17b964 100644
--- a/src/audioinputengine.h
+++ b/src/audioinputengine.h
@@ -29,18 +29,22 @@
#include <string>
-#include "event.h"
+#include <event.h>
+
+#include "instrument.h"
class AudioInputEngine {
public:
- AudioInputEngine() {}
- virtual ~AudioInputEngine() {}
+ virtual bool init(Instruments &instruments) = 0;
- virtual bool init(EventQueue *e) = 0;
+ virtual void setParm(std::string parm, std::string value) = 0;
- virtual void run(size_t pos, size_t len) = 0;
-};
+ virtual bool start() = 0;
+ virtual void stop() = 0;
-AudioInputEngine *createAudioInputEngine(std::string engine);
+ virtual void pre() = 0;
+ virtual event_t *run(size_t pos, size_t len, size_t *nevents) = 0;
+ virtual void post() = 0;
+};
#endif/*__DRUMGIZMO_AUDIOINPUTENGINE_H__*/