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

add -ShowDisabled parameter support to List parameter #24

Merged
merged 3 commits into from
Aug 12, 2018

Conversation

frgnca
Copy link
Owner

@frgnca frgnca commented Aug 12, 2018

Get-AudioDevice -List

Outputs all enabled devices (playback, then recording)

Index Default Type      Name                                     ID                                                      Dev
                                                                                                                         ice
----- ------- ----      ----                                     --                                                      ---
    1   False Playback  SAMSUNG (NVIDIA High Definition Audio)   {0.0.0.00000000}.{8641fed6-45a1-4ae0-b776-9c98d8cba99e} Cor
    2    True Playback  Analogue (Realtek High Definition Audio) {0.0.0.00000000}.{a551ec85-9b70-4789-b39a-46c924d9d2fc} Cor
    3    True Recording Microphone (Blue Snowball)               {0.0.1.00000000}.{89162399-0caf-4136-8cfe-5830e4b6a381} Cor

########################

Get-AudioDevice -List -ShowDisabled

Outputs all enabled devices (playback, then recording) followed by all disabled devices (playback, then recording)

Index Default Type      Name                                                            ID                                  
----- ------- ----      ----                                                            --                                  
    1   False Playback  SAMSUNG (NVIDIA High Definition Audio)                          {0.0.0.00000000}.{8641fed6-45a1-4...
    2    True Playback  Analogue (Realtek High Definition Audio)                        {0.0.0.00000000}.{a551ec85-9b70-4...
    3    True Recording Microphone (Blue Snowball)                                      {0.0.1.00000000}.{89162399-0caf-4...
    4   False Playback  Haut-parleurs (Steam Streaming Speakers)                        {0.0.0.00000000}.{07d001b7-8595-4...
    5   False Playback  Haut-parleurs (Steam Streaming Microphone)                      {0.0.0.00000000}.{1a41d3e1-dc25-4...
    6   False Playback  Realtek Digital Output(Optical) (Realtek High Definition Audio) {0.0.0.00000000}.{78614282-221c-4...
    7   False Playback  Realtek Digital Output (Realtek High Definition Audio)          {0.0.0.00000000}.{910f533b-7fe8-4...
    8   False Playback  Casque (SAVFY BTD0153 Hands-Free)                               {0.0.0.00000000}.{916936f0-c1a6-4...
    9   False Recording Microphone (Steam Streaming Microphone)                         {0.0.1.00000000}.{29a46485-9a4f-4...
   10   False Recording Mixage stéréo (Realtek High Definition Audio)                   {0.0.1.00000000}.{7686392f-d5a9-4...
   11   False Recording Prise jack AUX interne (Steam Streaming Speakers)               {0.0.1.00000000}.{8b88b17d-cc50-4...

########################
This order prevents us from having to change the index of the enabled AudioDevices whether or not the -ShowDisabled parameter is called.

@frgnca frgnca merged commit 3d95755 into dev_v3.0.1_showdisabled Aug 12, 2018
@frgnca frgnca deleted the test_v3.0.1_showdisabled branch August 12, 2018 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant