osc/bundle
src/osc/bundle.tur
defn
bundle-new
(bundle-new [timetag :float] :int)
create a new OSC bundle with the given timetag.
Parameters
| timetag | NTP seconds component of the bundle timetag (fractional part is 0) |
Returns
Bundle :int handle; pass to bundle-add-msg, bundle-free, and client-send-bundle.
Example
(let [b (bundle-new 0.0)]
...)
Since: OSC0
defn
bundle-add-msg
(bundle-add-msg [b :int m :int] :void)
add an OSC message to a bundle.
Parameters
| b | bundle :int (return value of bundle-new) | |
| m | wrapper :int (return value of msg-new from osc/msg) |
Returns
void Note: The bundle takes ownership of the lo_message inside the wrapper. Do not call msg-free after adding a message to a bundle; call bundle-free instead, which will free the underlying lo_message objects.
Example
(bundle-add-msg b m)
Since: OSC0
defn
bundle-free
(bundle-free [b :int] :void)
free a bundle and all messages it owns.
Parameters
| b | bundle :int (return value of bundle-new) |
Returns
void
Example
(bundle-free b)
Since: OSC0