aboutsummaryrefslogtreecommitdiff
path: root/osc.lv2/osc.lv2
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-11-08 22:43:39 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-11-08 22:43:39 +0100
commit81189de710103f1479a45460a54fadba356f9ca4 (patch)
tree2cbbd287ddf086e8f04cd2c8658a38d4cbd68cf0 /osc.lv2/osc.lv2
parent9a9adf58868ac2b469f2f8f9e8a72e47a38406a7 (diff)
parentc6f8fb69c755e4732c879b82d77bdd343754d069 (diff)
downloadsynthpod-81189de710103f1479a45460a54fadba356f9ca4.tar.xz
Merge commit 'c6f8fb69c755e4732c879b82d77bdd343754d069'
Diffstat (limited to 'osc.lv2/osc.lv2')
-rw-r--r--osc.lv2/osc.lv2/util.h6
-rw-r--r--osc.lv2/osc.lv2/writer.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/osc.lv2/osc.lv2/util.h b/osc.lv2/osc.lv2/util.h
index c7c5d661..b9d37466 100644
--- a/osc.lv2/osc.lv2/util.h
+++ b/osc.lv2/osc.lv2/util.h
@@ -31,6 +31,12 @@
extern "C" {
#endif
+#undef LV2_ATOM_TUPLE_FOREACH // there is a bug in LV2 1.10.0
+#define LV2_ATOM_TUPLE_FOREACH(tuple, iter) \
+ for (LV2_Atom* (iter) = lv2_atom_tuple_begin(tuple); \
+ !lv2_atom_tuple_is_end(LV2_ATOM_BODY(tuple), (tuple)->atom.size, (iter)); \
+ (iter) = lv2_atom_tuple_next(iter))
+
typedef void (*LV2_OSC_Method)(const char *path,
const LV2_Atom_Tuple *arguments, void *data);
diff --git a/osc.lv2/osc.lv2/writer.h b/osc.lv2/osc.lv2/writer.h
index d11cfb6c..c081cad0 100644
--- a/osc.lv2/osc.lv2/writer.h
+++ b/osc.lv2/osc.lv2/writer.h
@@ -31,6 +31,12 @@
extern "C" {
#endif
+#undef LV2_ATOM_TUPLE_FOREACH // there is a bug in LV2 1.10.0
+#define LV2_ATOM_TUPLE_FOREACH(tuple, iter) \
+ for (LV2_Atom* (iter) = lv2_atom_tuple_begin(tuple); \
+ !lv2_atom_tuple_is_end(LV2_ATOM_BODY(tuple), (tuple)->atom.size, (iter)); \
+ (iter) = lv2_atom_tuple_next(iter))
+
typedef struct _LV2_OSC_Writer LV2_OSC_Writer;
typedef struct _LV2_OSC_Writer_Frame LV2_OSC_Writer_Frame;