diff --git a/package.json b/package.json index 399ebf2..fae146f 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "arrpc": "github:OpenAsar/arrpc#98879cae0565e6fce34e4cb6f544bf42c6a7e7c8" }, "optionalDependencies": { - "@vencord/venmic": "^2.1.3" + "@vencord/venmic": "^3.2.0" }, "devDependencies": { "@fal-works/esbuild-plugin-global-externals": "^2.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d7a335b..97ada2a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,8 +11,8 @@ dependencies: optionalDependencies: '@vencord/venmic': - specifier: ^2.1.3 - version: 2.1.4 + specifier: ^3.2.0 + version: 3.2.0 devDependencies: '@fal-works/esbuild-plugin-global-externals': @@ -793,8 +793,8 @@ packages: type-fest: 3.13.1 dev: true - /@vencord/venmic@2.1.4: - resolution: {integrity: sha512-Or//CHB9QtMcUXoDagkq0IF/7R8r7IABCaLIPtG8HCKSuOOFgBJ54PItnPXCliNKXWpwsUxj5z1WlZ4/VdwZHg==} + /@vencord/venmic@3.2.0: + resolution: {integrity: sha512-z+Lgmr6IgjkPEIfFZ3ZwVV4aP/OFjnB6k6Ll5YpBPuDZOyqCbKTNLADApbZa/WxMfm7YpZ22g46X4FfizuprEQ==} engines: {node: '>=14.15'} os: [linux] requiresBuild: true diff --git a/src/main/virtmic.ts b/src/main/virtmic.ts index 36920e9..ddbde63 100644 --- a/src/main/virtmic.ts +++ b/src/main/virtmic.ts @@ -55,22 +55,17 @@ ipcMain.handle( IpcEvents.VIRT_MIC_START, (_, targets: string[]) => obtainVenmic()?.link({ - props: targets.map(target => ({ key: "application.name", value: target })), - mode: "include" + include: targets.map(target => ({ key: "application.name", value: target })), + exclude: [{ key: "application.process.id", value: getRendererAudioServicePid() }] }) ); ipcMain.handle( IpcEvents.VIRT_MIC_START_SYSTEM, () => + // @ts-expect-error venmic types are wrong. include is actually optional but typed as required in vemic obtainVenmic()?.link({ - props: [ - { - key: "application.process.id", - value: getRendererAudioServicePid() - } - ], - mode: "exclude" + exclude: [{ key: "application.process.id", value: getRendererAudioServicePid() }] }) );