Skip to content
This repository was archived by the owner on Mar 25, 2026. It is now read-only.

Commit d1a81c6

Browse files
committed
docs: add TSDoc for audio sharing exported symbols
1 parent 415633c commit d1a81c6

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/@types/audio-sharing.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ import type { Node } from "@vencord/venmic";
99

1010
/** User's audio source selection from the audio picker. */
1111
export interface AudioSelection {
12+
/** The type of audio source: "none" (no audio), "system" (all system audio), or "app" (specific application). */
1213
type: "none" | "system" | "app";
14+
/** The PipeWire node to capture audio from. Only set when type is "app". */
1315
node?: Node;
1416
}
1517

src/displayMediaCallback.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,18 @@ export const setDisplayMediaCallback = (callback: DisplayMediaCallback | null):
2020
displayMediaCallback = callback;
2121
};
2222

23+
/**
24+
* Get whether audio was requested for the current display media callback.
25+
* Used to determine if the audio picker should be shown on Linux.
26+
*/
2327
export const getAudioRequested = (): boolean => {
2428
return audioRequested;
2529
};
2630

31+
/**
32+
* Set whether audio was requested for the current display media callback.
33+
* @param requested - Whether audio sharing was requested
34+
*/
2735
export const setAudioRequested = (requested: boolean): void => {
2836
audioRequested = requested;
2937
};

0 commit comments

Comments
 (0)