frgnca / AudioDeviceCmdlets

AudioDeviceCmdlets is a suite of PowerShell Cmdlets to control audio devices on Windows
MIT License
737 stars 92 forks source link

get-audiodevice -recording only returns one recording device when multiple are present #34

Closed meadcd closed 4 years ago

meadcd commented 4 years ago

When using "Get-Audiodevice -recording", cmdlet returns a single device which is set as the default.

using get-audiodevice -list | where-object {$_.Type -like "Recording"} returns all devices which are of type recording. Is this intended behavior?

frgnca commented 4 years ago

Yes this is intended behavior. The reason, if I remember correctly, is that in the past there were both a Get-DefaultPlaybackAudioDevice and a Get-DefaultRecordingAudioDevice cmdlets. Those became the -Playback and -Recording parameters of the Get-AudioDevice cmdlet.