-
Notifications
You must be signed in to change notification settings - Fork 94
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
Get-AudioDevice -List, error when disabled device present #35
Comments
Agreed:
Not sure how to get more information / troubleshoot further, @frgnca any pointers? |
Never seen this before. What is the output of say Does it give a different error message? |
No, same:
One more detail that I just become aware of. I have multiple audio devices. The above fails only when issued against a non-default audio device. It succeeds when issued against a default device. I've tested by changing all combinations. This is with AudioDeviceCmdlets 3.0.0.4 by the way. |
Same issue. As described above, all switch parameters are working, other than List.
In regards to your question @frgnca , I don't have an active device on Index 1, but if I look for 3, I get a result as expected.
I have re-installed the module as well. Just to make sure that it wasn't an import issue.
Kindly assist. |
Performed some additional tests. If I disable all devices, leaving only the active device enabled. I get the result. But the moment any other device gets enabled, it stops working again.
Another interesting finding, if all devices above the Default device are disabled and the ones below the default device are enabled, the list works till it hits the first non-default device.
To me, it seems that (possibly after the new windows update) non-default devices are no longer providing an element of data required to populate this list, which makes the query to stop on first non-default device, and stop recursing through the rest of the list. What do you think @frgnca ? |
I'm also affected by this bug, I installed the dll only with I cannot exec
|
I could see the same error. |
This has nothing to do with newer hardware. My PC is Haswell 4790k from 2015. I found exactly what causes the issue. When Mic is connected issue disappears, when mic is disconnected issue appears. As posted in my previous message, latest windows update removes certain details from disconnected devices that this query is looking for. So, instead of gracefully moving to the next device, this query just crashes. |
Here is where the error is probably occuring AudioDeviceCmdlets/SOURCE/AudioDeviceCmdlets.cs Lines 163 to 177 in 3d33a5b
Hopefuly my goal of adding support for disabled/disconnected AudioDevice will bypass this problem. |
Good find. I think you are correct. It should bypass the issue when there is something in 'recoding device' list, even if it is disabled or disconnected. Even before this condition we could branch out the 'if', to execute 'iff' there is a device in default recording device list. If there is a default device execute as is, and if not execute modified conditions without recording device conditions. Just a thought, I leave it to you how you think it would be best. |
I just got this error when I disconnected my default recording device, just re-connected it the error is gone. I have manually compiled "Dev v3.0.1 communicationdevice #30" and "add -ShowDisabled parameter support to List parameter (#24)". I don't try to see if this occurs with the lastest available release (3.0). It's a shame that this wonderful tweak didn't update anymore ... |
I just want to confirm being able to replicate this bug by calling the -List parameter when there is no enabled playback device and/or no enabled recording device. |
With the code as it is now in #52, I think the problem possibly exists in 3 places.
|
Having fixed the way the List, ID, and Index parameters work, I came to the conclusion that this bug could also happen in the same way in pretty much all of the other parameters. I will continue to work on those from pull request #55 |
Maybe I did something wrong but this doesn't work for me. I get : Element not found. (Exception from HRESULT: 0x80070490). FullyQualifiedErrorId: System.Runtime.InteropServices.COMException,AudioDeviceCmdlets.GetAudioDevice.
The text was updated successfully, but these errors were encountered: