mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 23:19:09 +00:00
docs: comment osc functions
This commit is contained in:
@@ -88,10 +88,18 @@ export class EventTimer extends Timer {
|
|||||||
this.updateOSCClient(oscClient);
|
this.updateOSCClient(oscClient);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description Updates the osc client used in the object
|
||||||
|
* @param {object} oscClient
|
||||||
|
*/
|
||||||
updateOSCClient(oscClient) {
|
updateOSCClient(oscClient) {
|
||||||
this.oscClient = oscClient;
|
this.oscClient = oscClient;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description Sends osc value from predefined messages
|
||||||
|
* @param {string} event - message to be sent
|
||||||
|
*/
|
||||||
sendOSC(event) {
|
sendOSC(event) {
|
||||||
if (this.oscClient == null) return;
|
if (this.oscClient == null) return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user