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

Refactored to support both input and output devices #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

swemoney
Copy link

@swemoney swemoney commented Mar 4, 2024

Adding support for input devices turned out to just be a change from passing DataFlow.Render to DataFlow.Capture to the MMDeviceEnumerator. I pretty much just renamed the OutputDevice class to AudioDevice and added a DataFlow property you can pass to the constructor so you can create a list of either output or input devices depending on which DataFlow you pass in. The input actions are mostly copied from the output actions with some changes to adapt to the new universal class.

I also needed to add an extra indicator to the icon to specify if that button was an output device or input device. Since I was doing that, it felt like the default selected device checkmark worked better as small image instead of a full icon size.

Was my first time working with a LoupeDeck plugin so hopefully it all looks alright.

@swemoney swemoney mentioned this pull request Mar 4, 2024
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.

1 participant