summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2011-10-05 21:20:16 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2011-10-05 21:20:16 +0200
commit38ca16084eaed14e155c3f096d6eb6e38778e9a4 (patch)
tree81a13c0933d74c3c9dc2aedf06cd6ccfdfd196bf
parent71e1c617ba1756269dca9c5bc07c765077cc7b08 (diff)
Get drumkit filename from env. Relocate lv2.h file inclusion.
-rw-r--r--lv2/lv2.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lv2/lv2.cc b/lv2/lv2.cc
index 8a8d7a3..346b0dc 100644
--- a/lv2/lv2.cc
+++ b/lv2/lv2.cc
@@ -24,7 +24,7 @@
* along with DrumGizmo; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#include <lv2/lv2plug.in/ns/lv2core/lv2.h>
+#include <lv2.h>
#include <stdlib.h>
@@ -93,7 +93,7 @@ LV2_Handle instantiate(const struct _LV2_Descriptor *descriptor,
dglv2->buffer_size = 0;
dglv2->dg = new DrumGizmo(dglv2->out, dglv2->in);
- dglv2->dg->loadkit("/home/deva/docs/c/drumgizmo/kits/test/test.xml");
+ dglv2->dg->loadkit(getenv("DRUMGIZMO_DRUMKIT"));
dglv2->dg->init(true);
return (LV2_Handle)dglv2;