Fix more compiler whining

This commit is contained in:
2024-04-20 03:14:33 +02:00
parent 1824a345fc
commit 0d2f7046c9
3 changed files with 18 additions and 19 deletions

View File

@ -1,8 +1,7 @@
import { sendToServer, type OSCMessage } from "../../IO/OSC";
import { Editor } from "../../main";
import { oscMessages } from "../../IO/OSC";
export const osc = (app: Editor) => (address: string, port: number, ...args: any[]): void => {
export const osc = () => (address: string, port: number, ...args: any[]): void => {
/**
* Sends an OSC message to the server.
*/
@ -10,7 +9,7 @@ export const osc = (app: Editor) => (address: string, port: number, ...args: any
address: address,
port: port,
args: args,
timetag: Math.round(Date.now() + (app.clock.nudge - app.clock.deviation)),
timetag: Math.round(Date.now()),
} as OSCMessage);
};