fix(desktop): capture screen share audio from chosen devices (#3456)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-14 02:48:19 +02:00
1 parent 123c4d5bbf
commit 97b2ac91ca
56 files changed
+2338 -291

No files matched your search

+20
View File
@@ -9,6 +9,7 @@ export interface ProcessLoopbackOptions {
scope?: 'process' | 'system' | 'session-mixer';
sampleRate?: 48000;
channels?: 2;
endpoints?: Array<string>;
}
export interface AudioFrame {
@@ -40,6 +41,8 @@ export declare class ProcessLoopback extends EventEmitter {
start(): Promise<void>;
setEndpoints(endpoints: Array<string>): boolean;
stop(): void;
}
@@ -66,3 +69,20 @@ export declare function getBackendInfo(): WinProcessLoopbackBackendInfo;
export declare function pidFromHwnd(hwnd: bigint): number;
export declare function resolveAudioRootPid(pid: number): number;
export interface PlaybackDeviceSession {
pid: number;
rootPid: number;
exe: string;
state: 'active' | 'inactive';
excluded: boolean;
}
export interface PlaybackDevice {
id: string;
name: string;
isDefault: boolean;
sessions: Array<PlaybackDeviceSession>;
}
export declare function listPlaybackDevices(): Promise<Array<PlaybackDevice>>;