summaryrefslogtreecommitdiff
path: root/src/drumgizmo.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-01-26 08:42:18 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-01-26 08:42:18 +0100
commitcb220c27929600ff7a1980bbe421290e39b2eddc (patch)
treeba817c8081e21f0bbd1bfe7042e7ce962bf2e35f /src/drumgizmo.h
parent06842ff2d9c727fe46f5da82ae1e43e74be6e588 (diff)
Background loader for audio files.
Diffstat (limited to 'src/drumgizmo.h')
-rw-r--r--src/drumgizmo.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/drumgizmo.h b/src/drumgizmo.h
index a3ad3ca..e79dad0 100644
--- a/src/drumgizmo.h
+++ b/src/drumgizmo.h
@@ -37,6 +37,10 @@
#include "audiofile.h"
#include "drumkit.h"
+#include "drumkitloader.h"
+
+#include "mutex.h"
+
#define MAX_NUM_CHANNELS 512
class DrumGizmo {
@@ -45,7 +49,7 @@ public:
AudioInputEngine *inputengine);
~DrumGizmo();
- bool loadkit(const std::string &kitfile);
+ bool loadkit(std::string kitfile);
std::string drumkitfile();
bool init(bool preload = true);
@@ -59,11 +63,15 @@ public:
bool isRunning() { return is_running; }
std::string configString();
- void setConfigString(std::string cfg);
+ bool setConfigString(std::string cfg);
std::string midimapfile;
+ std::string kitfile;
private:
+ DrumKitLoader loader;
+
+ Mutex mutex;
bool is_running;
AudioOutputEngine *oe;
@@ -77,8 +85,6 @@ private:
public:
#endif
DrumKit kit;
-
- std::string kitfile;
};