Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential Audio Fix for Windows #1068

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

CloveTwilight3
Copy link

Potential fix for issue 569

As mentioned by @quadrinex, we can setup a virtual cable and exclude the "vesktop.exe" executable from this.

Key modifications:

Added Windows-specific audio handling
- Included path-based app name detection
- Prepared structure for virtual audio cable routing
- Added placeholder for audio routing constraints

Note: Precise virtual audio cable implementation requires platform-specific audio routing libraries or APIs. You may need to integrate additional Windows audio routing mechanisms.
Added in the copyright (I accidently removed) added in integration for windows.

New Key features:
- Advanced audio routing for Windows
- Virtual audio device detection
- Configurable excluded processes
- Fallback mechanisms
- Cross-platform support with Wayland handling
Copy link

@nin0-dev nin0-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lint seems to be invalid (unsorted imports and single quotes which are never used in the entire project), please setup a proper dev environment (VSCode and eslint extension) to have the formatting rules applied

Key changes made:

Organized imports into three groups:

External dependencies (electron)
Node.js built-in modules (child_process, path)
Internal project imports (renderer, shared, utils)


Replaced all single quotes with double quotes for consistency:

String literals
Import statements
Object properties
Console messages


Removed unused path import (though kept it in the same position in case it's needed later)
Added proper spacing between imports and the rest of the code
@CloveTwilight3
Copy link
Author

my apologies, I am still newish to typescript lmao, these changes should have fixed it

@Vendicated
Copy link
Member

Thank you for your contribution!

This PR confuses me though. You mention setting up a Virtual Cable but the code does not do this in any way. It just looks it up in the existing audio devices. Is this a thing that always exists on Windows?

Also please do not make random changes to lint settings or unrelated files

@quadrinex
Copy link

Thank you for your contribution!

This PR confuses me though. You mention setting up a Virtual Cable but the code does not do this in any way. It just looks it up in the existing audio devices. Is this a thing that always exists on Windows?

Also please do not make random changes to lint settings or unrelated files

VB cable isn't open source so it requires you to have it installed separately. When the program is loaded, it creates an output and that what he is looking up.


@CloveTwilight3
Btw there should be an option to manually set the output (for : vb cable a&b, vb cable c&d, voicemeeter, vb matrix) and thanks for opening a pull request about my idea.

@CloveTwilight3
Copy link
Author

VB cable isn't open source so it requires you to have it installed separately. When the program is loaded, it creates an output and that what he is looking up.

@CloveTwilight3 Btw there should be an option to manually set the output (for : vb cable a&b, vb cable c&d, voicemeeter, vb matrix) and thanks for opening a pull request about my idea.

Branching off this, VB cable is the think I'm looking up, as not open source, but most people will download the software as a windows user.

RE the manual setup, if its automated, that removes faff, but also making it manually should not conflict with anything, so either option should be good to use

@CloveTwilight3
Copy link
Author

Thank you for your contribution!

This PR confuses me though. You mention setting up a Virtual Cable but the code does not do this in any way. It just looks it up in the existing audio devices. Is this a thing that always exists on Windows?

Also please do not make random changes to lint settings or unrelated files

Agreed with what @quadrinex says. Also apologies for the lint settings changes, just a habit of mine to do tweaks like that 😅

@quadrinex
Copy link

So will it be merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants