Vuo
1.2.6
|
VuoOscDevices implementation.
Functions | |
VuoList_VuoOscInputDevice | VuoOsc_getInputDeviceList (void) |
Returns a list of the currently-avaialble OSC input devices. | |
VuoList_VuoOscOutputDevice | VuoOsc_getOutputDeviceList (void) |
Returns a list of the currently-avaialble OSC output devices. | |
void | VuoOsc_clientCallback (CFNetServiceRef service, CFStreamError *error, void *info) |
Called when service details have been resolved. | |
void | VuoOsc_deviceCallback (CFNetServiceBrowserRef browser, CFOptionFlags flags, CFTypeRef domainOrService, CFStreamError *error, void *info) |
Called when a new domain or service appears. | |
void | VuoOsc_use (void) |
Indicates that the caller needs to get notifications about OSC devices. | |
void | VuoOsc_disuse (void) |
Indicates that the caller no longer needs notifications about OSC devices. | |
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. | |
void | VuoOsc_removeDevicesChangedTriggers (VuoOutputTrigger(inputDevices, VuoList_VuoOscInputDevice), VuoOutputTrigger(outputDevices, VuoList_VuoOscOutputDevice)) |
Removes a trigger callback previously added by VuoOsc_addDevicesChangedTriggers. | |
Variables | |
static dispatch_queue_t | VuoOsc_deviceQueue |
Serializes access to the below device lists. | |
static VuoList_VuoOscInputDevice | VuoOsc_inputDevices |
All known input devices. | |
static VuoList_VuoOscOutputDevice | VuoOsc_outputDevices |
All known output devices. | |
static VuoTriggerSet < VuoList_VuoOscInputDevice > | VuoOsc_inputDeviceCallbacks |
Trigger functions to call when the list of devices changes. | |
static VuoTriggerSet < VuoList_VuoOscOutputDevice > | VuoOsc_outputDeviceCallbacks |
Trigger functions to call when the list of devices changes. | |
unsigned int | VuoOsc_useCount = 0 |
Process-wide count of callers (typically node instances) interested in notifications about OSC devices. | |
CFNetServiceBrowserRef | VuoOsc_browser |
Manages notifications about OSC devices. | |
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.
void VuoOsc_clientCallback | ( | CFNetServiceRef | service, |
CFStreamError * | error, | ||
void * | info | ||
) |
Called when service details have been resolved.
void VuoOsc_deviceCallback | ( | CFNetServiceBrowserRef | browser, |
CFOptionFlags | flags, | ||
CFTypeRef | domainOrService, | ||
CFStreamError * | error, | ||
void * | info | ||
) |
Called when a new domain or service appears.
void VuoOsc_disuse | ( | void | ) |
Indicates that the caller no longer needs notifications about OSC devices.
This function may be called from any thread.
VuoList_VuoOscInputDevice VuoOsc_getInputDeviceList | ( | void | ) |
Returns a list of the currently-avaialble OSC input devices.
VuoList_VuoOscOutputDevice VuoOsc_getOutputDeviceList | ( | void | ) |
Returns a list of the currently-avaialble OSC output devices.
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.
void VuoOsc_use | ( | void | ) |
Indicates that the caller needs to get notifications about OSC devices.
This function may be called from any thread.
CFNetServiceBrowserRef VuoOsc_browser |
Manages notifications about OSC devices.
|
static |
Serializes access to the below device lists.
|
static |
Trigger functions to call when the list of devices changes.
|
static |
All known input devices.
|
static |
Trigger functions to call when the list of devices changes.
|
static |
All known output devices.
unsigned int VuoOsc_useCount = 0 |
Process-wide count of callers (typically node instances) interested in notifications about OSC devices.