AudioDeviceCmdlets icon indicating copy to clipboard operation
AudioDeviceCmdlets copied to clipboard

Audio cmdlet improvement

Open StartAutomating opened this issue 2 years ago • 4 comments

Fixing:

  • #66
  • #67
  • #68
  • #69

StartAutomating avatar Dec 10 '22 23:12 StartAutomating

I have never been much of a maintainer so please bear with me. I will test this and try to look at the code more closely, but at first glance this looks like an interesting enhancement.

frgnca avatar Jan 28 '23 16:01 frgnca

@frgnca Thanks!

If you want help maintaining the thing, I'm pretty sure I could step up to the plate.

StartAutomating avatar Jan 29 '23 23:01 StartAutomating

Would it be possible to prevent Tab autocomplete suggestions such as these? Write-AudioDevice -PlaybackMeter -RecordingCommunicationMeter Write-AudioDevice -PlaybackStream -RecordingCommunicationStream Meaning parameter combinations that results in alternating meters or interwoven streams

frgnca avatar Feb 19 '23 16:02 frgnca

I don't think I've ever figured out a way to make tab completion handle mutually exclusive parameters in the way you're wanting.

I also do recall it was possible to have both a playback meter and a recording meter active.

Personally, I'd consider that a totally valid scenario (think monitoring both your playback and recording levels).

When we're returning data, we could add a noteproperty indicating which stream it is coming from.

We could also get a notch more sophisticated with the return for a stream and return an object of our own design.

This may be preferred, as it gives us a way to provide some analysis of the audio.

For example, we could add a .Phase property (the ratio between two channels of audio)

Lemme know if you'd like me to add more / what you'd like me to add.

I'd very much like this to be updated on the PowerShell Gallery by mid-march, in preparations for some April releases.

StartAutomating avatar Feb 19 '23 21:02 StartAutomating