screenaudio: show better error if glibcxx too old

This commit is contained in:
Vendicated
2023-10-27 00:27:35 +02:00
parent 0cad71f6ae
commit 886d02f7c3
3 changed files with 27 additions and 12 deletions

View File

@@ -61,7 +61,8 @@ export const VesktopNative = {
},
/** only available on Linux. */
virtmic: {
list: () => invoke<string[] | null>(IpcEvents.VIRT_MIC_LIST),
list: () =>
invoke<{ ok: false; isGlibcxxToOld: boolean } | { ok: true; targets: string[] }>(IpcEvents.VIRT_MIC_LIST),
start: (target: string) => invoke<void>(IpcEvents.VIRT_MIC_START, target),
startSystem: () => invoke<void>(IpcEvents.VIRT_MIC_START_SYSTEM),
stop: () => invoke<void>(IpcEvents.VIRT_MIC_STOP)