summaryrefslogtreecommitdiff
path: root/src/drumgizmo.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-12-01 21:00:15 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-12-01 21:00:15 +0100
commit0a0becd384da4b0ed892dcd32285dd646ad720df (patch)
tree4097357a85aacb996a657610ccd21bc3b1fe28f8 /src/drumgizmo.h
parent5288afdaa77bf51fab48a7764b08fe7b7d500c82 (diff)
Add endpos parameter to cli.
Diffstat (limited to 'src/drumgizmo.h')
-rw-r--r--src/drumgizmo.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/drumgizmo.h b/src/drumgizmo.h
index 2ef0aeb..37b26e5 100644
--- a/src/drumgizmo.h
+++ b/src/drumgizmo.h
@@ -54,11 +54,13 @@ public:
virtual ~DrumGizmo();
bool loadkit(std::string kitfile);
- std::string drumkitfile();
bool init(bool preload = true);
-
- void run();
+
+ /**
+ * @param endpos number of samples to process, -1 := never stop.
+ */
+ void run(int endpos);
bool run(size_t pos, sample_t *samples, size_t nsamples);
void stop();
@@ -69,8 +71,6 @@ public:
std::string configString();
bool setConfigString(std::string cfg);
- std::string kitfile;
-
void handleMessage(Message *msg);
int samplerate();