PADataStructs.ps1
class PulseAudioCard { [int] $Index [string] $Name [string] $Driver [PulseAudioPort[]] $Ports [PulseAudioProfile[]] $Profiles [PulseAudioProfile] $ActiveProfile [string] ToString() { return ConvertTo-Json $this } } class PulseAudioProfile { [string] $SymbolicName [string] $DisplayName [int] $SinkCount [int] $SourceCount [int] $Priority [bool] $Available [string] ToString() { return ConvertTo-Json $this } } class PulseAudioPort { [string] $SymbolicName [string] $DisplayName [string] $ProductName [bool] $Available [string[]] $ProfileNames [string] ToString() { return ConvertTo-Json $this } } class PulseAudioSink { [int] $Index [string] $Name [string] $Description [string] ToString() { return ConvertTo-Json $this } } class PulseAudioSinkInput { [int] $Index [string] $ApplicationName [string] $BinaryName [int] $ProcessId [string] ToString() { return ConvertTo-Json $this } } class PulseAudioSource { [int] $Index [string] $Name [string] $Description [string] ToString() { return ConvertTo-Json $this } } class PulseAudioSourceOutput { [int] $Index [string] $ApplicationName [string] $BinaryName [int] $ProcessId [string] ToString() { return ConvertTo-Json $this } } |