aboutsummaryrefslogtreecommitdiff
path: root/osc.lv2
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2015-07-16 09:34:03 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2015-07-16 09:34:03 +0200
commit229882eccf46a23d5cf7c8a4f21914f40a9e5693 (patch)
treee2a4dc8d8ae0cf853016ae8d56705de981398cad /osc.lv2
parent34416622a32a65babfb1a20d1ea797334dbf0f88 (diff)
parent026aa94a3a859508a34842255dc24dc060a7402e (diff)
downloadmoony.lv2-229882eccf46a23d5cf7c8a4f21914f40a9e5693.tar.xz (sig)
Merge commit '026aa94a3a859508a34842255dc24dc060a7402e'0.1.1_rc2
Diffstat (limited to 'osc.lv2')
-rw-r--r--osc.lv2/lv2_osc.h15
-rw-r--r--osc.lv2/osc.ttl3
2 files changed, 18 insertions, 0 deletions
diff --git a/osc.lv2/lv2_osc.h b/osc.lv2/lv2_osc.h
index 1c330ba..85f807d 100644
--- a/osc.lv2/lv2_osc.h
+++ b/osc.lv2/lv2_osc.h
@@ -30,6 +30,8 @@
#define OSC_PREFIX OSC_URI "#"
#define OSC__Event OSC_PREFIX "Event" // event
+#define OSC__schedule OSC_PREFIX "schedule" // feature
+
#define OSC__Bundle OSC_PREFIX "Bundle" // object otype
#define OSC__Message OSC_PREFIX "Message" // object otype
#define OSC__bundleTimestamp OSC_PREFIX "bundleTimestamp" // property key
@@ -38,6 +40,8 @@
#define OSC__messageFormat OSC_PREFIX "messageFormat" // property key
#define OSC__messageArguments OSC_PREFIX "messageArguments" // property key
+typedef void *osc_schedule_handle_t;
+typedef struct _osc_schedule_t osc_schedule_t;
typedef struct _osc_forge_t osc_forge_t;
typedef void (*osc_bundle_push_cb_t)(uint64_t timestamp, void *data);
@@ -45,6 +49,17 @@ typedef void (*osc_bundle_pop_cb_t)(void *data);
typedef void (*osc_message_cb_t)(const char *path, const char *fmt,
const LV2_Atom_Tuple *arguments, void *data);
+typedef int64_t (*osc_schedule_osc2frames_t)(osc_schedule_handle_t handle,
+ uint64_t timestamp);
+typedef uint64_t (*osc_schedule_frames2osc_t)(osc_schedule_handle_t handle,
+ int64_t frames);
+
+struct _osc_schedule_t {
+ osc_schedule_osc2frames_t osc2frames;
+ osc_schedule_frames2osc_t frames2osc;
+ osc_schedule_handle_t handle;
+};
+
struct _osc_forge_t {
LV2_URID OSC_Event;
diff --git a/osc.lv2/osc.ttl b/osc.lv2/osc.ttl
index 35aac3c..efa9e32 100644
--- a/osc.lv2/osc.ttl
+++ b/osc.lv2/osc.ttl
@@ -33,6 +33,9 @@
the plugin specification.</p>
""" .
+osc:schedule
+ a lv2:Feature .
+
osc:Event
a rdfs:Class ;
rdfs:subClassOf atom:Object ;