bump venmic

This commit is contained in:
Vendicated
2024-01-06 03:18:30 +01:00
parent 18925ad583
commit dfa9d248d3
3 changed files with 9 additions and 14 deletions

View File

@@ -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() }]
})
);