frgnca / AudioDeviceCmdlets

AudioDeviceCmdlets is a suite of PowerShell Cmdlets to control audio devices on Windows
MIT License
743 stars 92 forks source link

add support for device state (Enabled = true/false) #25

Open frgnca opened 5 years ago

frgnca commented 5 years ago

Should be able to support Get-AudioDevice -List -ShowDisabled

Get-AudioDevice -ID <string> (ID of a disabled device)
Get-AudioDevice -Index <int> (Index of a disabled device)

Should also add new attribut Enabled (bool) to AudioDevice object

frgnca commented 2 years ago

I'm considering scraping the -ShowDisabled feature in favor of showing all devices by default (enabled or not) as it is the default behavior in the classic Sound control panel.

One thing to note is that assigning an Index to each disabled devices newly showing might change the Index of potentially already used devices. For this reason, I'm thinking of waiting for a future v4.0 release to add that feature so that the change in behavior comes only with a major release.

Copy-link commented 1 year ago

I'm considering scraping the -ShowDisabled feature in favor of showing all devices by default (enabled or not) as it is the default behavior in the classic Sound control panel.

One thing to note is that assigning an Index to each disabled devices newly showing might change the Index of potentially already used devices. For this reason, I'm thinking of waiting for a future v4.0 release to add that feature so that the change in behavior comes only with a major release.

As someone who has virtual audio devices as well as a sound card, capture card, and extraneous sound devices from the motherboard's integrated sound, that'd be rather messy.

I think the most ideal behavior would be to have disabled devices hidden cosmetically and indexing the audio devices the same regardless. -ShowDisabled would just add the already indexed disabled devices to the command output instead of omitting them.