mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
fix(desktop): capture screen share audio from chosen devices (#3456)
This commit is contained in:
1 parent
123c4d5bbf
commit
97b2ac91ca
56 files changed
+2338
-291
No files matched your search
@@ -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>>;
|
||||
Reference in new issue
Block a user