AudioDeviceCmdlets icon indicating copy to clipboard operation
AudioDeviceCmdlets copied to clipboard

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

Open frgnca opened this issue 7 years ago • 2 comments

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 avatar Aug 12 '18 23:08 frgnca

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.

frgnca avatar Jan 23 '22 15:01 frgnca

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.

God-damnit-all avatar Sep 02 '22 16:09 God-damnit-all