support sources without pid
This commit is contained in:
parent
943232387d
commit
e734741fb7
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ function obtainVenmic() {
|
||||||
ipcMain.handle(IpcEvents.VIRT_MIC_LIST, () => {
|
ipcMain.handle(IpcEvents.VIRT_MIC_LIST, () => {
|
||||||
const audioPid = getRendererAudioServicePid();
|
const audioPid = getRendererAudioServicePid();
|
||||||
return obtainVenmic()
|
return obtainVenmic()
|
||||||
?.list(["application.process.id", "application.name"])
|
?.list()
|
||||||
.filter(s => s["application.process.id"] !== audioPid)
|
.filter(s => s["application.process.id"] !== audioPid)
|
||||||
.map(s => s["application.name"]);
|
.map(s => s["application.name"]);
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue