summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2014-10-22 15:41:46 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2014-10-22 15:41:46 +0200
commita3e49c6472b79923c658950271affd8578a1bad8 (patch)
tree2153acab67ae21b4c193af7ccea3c0f822f5ff52
parent8e224839149b1ec40dbd4d7c621fc0ad29464833 (diff)
Added metadata to drumkitloader.
-rw-r--r--src/drumgizmo.cc2
-rw-r--r--src/drumkitloader.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc
index 14a5516..ae3b8e4 100644
--- a/src/drumgizmo.cc
+++ b/src/drumgizmo.cc
@@ -147,7 +147,7 @@ void DrumGizmo::handleMessage(Message *msg)
{
DrumkitInfoMessage *msg = new DrumkitInfoMessage();
msg->metadata = loader.metadata;
- msghandler.sendMessage(MSGRC_UI, msg);
+ msghandler.sendMessage(MSGRCV_UI, msg);
}
break;
case Message::ChangeSettingMessage:
diff --git a/src/drumkitloader.h b/src/drumkitloader.h
index 2c0ea8e..d936c3a 100644
--- a/src/drumkitloader.h
+++ b/src/drumkitloader.h
@@ -34,6 +34,8 @@
#include "semaphore.h"
#include "mutex.h"
+#include "drumkitparser.h"
+
#include "drumkit.h"
/**
@@ -85,6 +87,7 @@ public:
*/
void skip();
+ MetaData metadata;
private:
Semaphore run_semaphore;
Semaphore semaphore;