Comments (3)
Get-AudioDevice -List works iff there is at least one playback device AND one recording device enabled. I didn't have a mic enabled and it took some work to figure out that that was causing the error.
Thank you for that information. Indeed I remember in my testing I always happened to have at least one of each.
from audiodevicecmdlets.
I think the issue must be on line 167 when calling the List parameter, with the possibility to also happen on line 193 and line 220 when calling the ID and Index parameter respectively.
The way it is currently done in these lines is calling the CoreAudioApi function GetDefaultAudioEndpoint() to get a value to compare directly instead of elsewhere and possibly in a TryCatch.
from audiodevicecmdlets.
Will follow up this bug in issue #35
from audiodevicecmdlets.
Related Issues (20)
- Question: How to get a single value from PlaybackStream HOT 2
- The module does not install HOT 2
- Get-AudioDevice -Playback output is wrong sometimes in scripts HOT 1
- Add support for ErrorAction argument HOT 1
- Get-AudioDevice -PlaybackCommunication HOT 4
- How to check Mute-State of non-default-device HOT 1
- Change status of non-default audio device HOT 1
- [Feature-Request] Include disabled/disconnected devices in Get-AudioDevice -List
- Feature Request - Disable Audio Device like it is possible in mmsys.cpl
- [Feature Request] Control over Communication's "Reduce The Volume" feature.
- [Feature Request] Set Endpoint Friendly Name.
- [Feature Request] Get and Set sampling rate and bit depth
- Write-AudioDevice should be able to adjust -[Timespan]SampleInterval and return floats HOT 3
- Write-AudioDevice should support -Multichannel
- Write-AudioDevice internal cleanup
- Write-AudioDevice should not use parameter sets
- "Get-AudioDevice -List" throws 0x80070490 Exception HOT 1
- Get-AudioDevice -PlaybackVolume returns a string not a float
- Feature Request: - Set Audio Device Format
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audiodevicecmdlets.