Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanccn committed Feb 7, 2024
1 parent 62c4e1c commit 03ae7c5
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/renderer/components/ScreenSharePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,8 @@ export function openScreenSharePicker(screens: Source[], skipPicker: boolean) {
modalProps={props}
submit={async v => {
didSubmit = true;
if (v.audioSource && v.audioSource !== "None") {
patchDisplayMedia({
audioId: v.audioDevice,
venmic: !!v.audioSource && v.audioSource !== "None",
videoId: v.cameraId
});

if (v.audioSource && v.audioSource !== "None") {
if (!v.audioDevice && v.audioSource && v.audioSource !== "None") {
if (v.audioSource === "Entire System") {
await VesktopNative.virtmic.startSystem(v.workaround);
Expand All @@ -130,7 +125,11 @@ export function openScreenSharePicker(screens: Source[], skipPicker: boolean) {
}
}

patchAudioWithDevice(v.audioDevice);
patchDisplayMedia({
audioId: v.audioDevice,
venmic: !!v.audioSource && v.audioSource !== "None",
videoId: v.cameraId
});

resolve(v);
}
Expand Down Expand Up @@ -328,7 +327,6 @@ function AudioSourceAnyDevice({
return (
<section>
<Forms.FormTitle>Audio</Forms.FormTitle>
{loading && <Forms.FormTitle>Loading audio devices...</Forms.FormTitle>}

{sources.length > 0 && (
<Select
Expand Down

0 comments on commit 03ae7c5

Please sign in to comment.