You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Set-AudioDevice or Get-AudioDevice is called either with invalid Index number of device ID, the fuctions return a visible error and nothing else. Not even a $null value as a return value. When valid funtcion return value cant't be given (in case of error) it would be good to have a $null value as result, so that I could use these functions in my own scripts and detect when the calls failed. Also it would be good if the function could support '-ErrorAction' parameters as well, so that visible error messages could be suppressed.
The text was updated successfully, but these errors were encountered:
When Set-AudioDevice or Get-AudioDevice is called either with invalid Index number of device ID, the fuctions return a visible error and nothing else. Not even a $null value as a return value. When valid funtcion return value cant't be given (in case of error) it would be good to have a $null value as result, so that I could use these functions in my own scripts and detect when the calls failed. Also it would be good if the function could support '-ErrorAction' parameters as well, so that visible error messages could be suppressed.
The text was updated successfully, but these errors were encountered: