VuoOsc interface.
Definition in file VuoOsc.h.
Go to the source code of this file.
Typedefs | |
typedef void * | VuoOscIn |
Manages receiving messages via OSC. More... | |
typedef void * | VuoOscOut |
Manages sending OSC output. More... | |
Functions | |
void | VuoOsc_use (void) |
Indicates that the caller needs to get notifications about OSC devices. More... | |
void | VuoOsc_disuse (void) |
Indicates that the caller no longer needs notifications about OSC devices. More... | |
VuoList_VuoOscInputDevice | VuoOsc_getInputDeviceList (void) |
Returns a list of the currently-avaialble OSC input devices. More... | |
VuoList_VuoOscOutputDevice | VuoOsc_getOutputDeviceList (void) |
Returns a list of the currently-avaialble OSC output devices. More... | |
bool | VuoOscInputDevice_realize (const VuoOscInputDevice device, VuoOscInputDevice *realizedDevice) |
If any of device 's properties are unknown: More... | |
bool | VuoOscOutputDevice_realize (const VuoOscOutputDevice device, VuoOscOutputDevice *realizedDevice) |
If any of device 's properties are unknown: More... | |
void | VuoOsc_addDevicesChangedTriggers (VuoOutputTrigger(inputDevices, VuoList_VuoOscInputDevice), VuoOutputTrigger(outputDevices, VuoList_VuoOscOutputDevice)) |
Adds a trigger callback, to be invoked whenever the list of known OSC devices changes. More... | |
void | VuoOsc_removeDevicesChangedTriggers (VuoOutputTrigger(inputDevices, VuoList_VuoOscInputDevice), VuoOutputTrigger(outputDevices, VuoList_VuoOscOutputDevice)) |
Removes a trigger callback previously added by VuoOsc_addDevicesChangedTriggers. More... | |
VuoOscIn | VuoOscIn_make (const VuoOscInputDevice device) |
Creates a reference-counted object to manage receiving messages from a OSC device. More... | |
void | VuoOscIn_enableTriggers (VuoOscIn oi, VuoOutputTrigger(receivedMessage, VuoOscMessage)) |
Sets up the OSC server to call the trigger functions when it receives a message. More... | |
void | VuoOscIn_disableTriggers (VuoOscIn oi) |
Stops the OSC server from calling trigger functions when it receives a message. More... | |
VuoOscOut | VuoOscOut_getShared (const VuoOscOutputDevice device) |
Returns the reference-counted object for the specified OSC output device. More... | |
void | VuoOscOut_sendMessages (VuoOscOut oo, VuoList_VuoOscMessage messages) |
Sends a message to the specified OSC device. More... | |
void VuoOsc_addDevicesChangedTriggers | ( | VuoOutputTrigger(inputDevices, VuoList_VuoOscInputDevice) | , |
VuoOutputTrigger(outputDevices, VuoList_VuoOscOutputDevice) | |||
) |
Adds a trigger callback, to be invoked whenever the list of known OSC devices changes.
Call VuoOsc_use()
before calling this.
This function may be called from any thread.
Definition at line 348 of file VuoOscDevices.cc.
void VuoOsc_disuse | ( | void | ) |
Indicates that the caller no longer needs notifications about OSC devices.
This function may be called from any thread.
Definition at line 312 of file VuoOscDevices.cc.
VuoList_VuoOscInputDevice VuoOsc_getInputDeviceList | ( | void | ) |
Returns a list of the currently-avaialble OSC input devices.
Definition at line 45 of file VuoOscDevices.cc.
VuoList_VuoOscOutputDevice VuoOsc_getOutputDeviceList | ( | void | ) |
Returns a list of the currently-avaialble OSC output devices.
Definition at line 57 of file VuoOscDevices.cc.
void VuoOsc_removeDevicesChangedTriggers | ( | VuoOutputTrigger(inputDevices, VuoList_VuoOscInputDevice) | , |
VuoOutputTrigger(outputDevices, VuoList_VuoOscOutputDevice) | |||
) |
Removes a trigger callback previously added by VuoOsc_addDevicesChangedTriggers.
This function may be called from any thread.
Definition at line 371 of file VuoOscDevices.cc.
void VuoOsc_use | ( | void | ) |
Indicates that the caller needs to get notifications about OSC devices.
This function may be called from any thread.
Definition at line 270 of file VuoOscDevices.cc.
void VuoOscIn_disableTriggers | ( | VuoOscIn | oi | ) |
void VuoOscIn_enableTriggers | ( | VuoOscIn | oi, |
VuoOutputTrigger(receivedMessage, VuoOscMessage) | |||
) |
VuoOscIn VuoOscIn_make | ( | const VuoOscInputDevice | device | ) |
Creates a reference-counted object to manage receiving messages from a OSC device.
If the device's port is nonzero, attempts to use the specified port. If zero, automatically chooses an unused port. If the port is successfully opened, advertises the server via Bonjour.
bool VuoOscInputDevice_realize | ( | VuoOscInputDevice | device, |
VuoOscInputDevice * | realizedDevice | ||
) |
If any of device
's properties are unknown:
realizedDevice
to that device, and returns true.realizedDevice
unset.If all of device
's properties are already known, sets realizedDevice
to a copy of device
, and returns true. (Doesn't bother checking whether the device is currently present.)
Call VuoOsc_use()
before calling this.
This function may be called from any thread.
Definition at line 403 of file VuoOscDevices.cc.
VuoOscOut VuoOscOut_getShared | ( | const VuoOscOutputDevice | device | ) |
void VuoOscOut_sendMessages | ( | VuoOscOut | oo, |
VuoList_VuoOscMessage | messages | ||
) |
bool VuoOscOutputDevice_realize | ( | VuoOscOutputDevice | device, |
VuoOscOutputDevice * | realizedDevice | ||
) |
If any of device
's properties are unknown:
realizedDevice
to that device, and returns true.realizedDevice
unset.If all of device
's properties are already known, sets realizedDevice
to a copy of device
, and returns true. (Doesn't bother checking whether the device is currently present.)
Call VuoOsc_use()
before calling this.
This function may be called from any thread.
Definition at line 464 of file VuoOscDevices.cc.