mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-01-18 05:10:48 +00:00
Update vban.ps1
add scriptproperty enable to vban object
This commit is contained in:
parent
093cfe0e85
commit
5395b8873f
14
lib/vban.ps1
14
lib/vban.ps1
@ -184,6 +184,7 @@ class VbanOutstream : Vban {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Function Vban {
|
||||
[System.Collections.ArrayList]$instream = @()
|
||||
[System.Collections.ArrayList]$outstream = @()
|
||||
@ -195,8 +196,19 @@ Function Vban {
|
||||
[void]$outstream.Add([VbanOutstream]::new($_))
|
||||
}
|
||||
|
||||
[PSCustomObject]@{
|
||||
$CustomObject = [PSCustomObject]@{
|
||||
instream = $instream
|
||||
outstream = $outstream
|
||||
}
|
||||
|
||||
$CustomObject | Add-Member ScriptProperty 'enable' `
|
||||
{
|
||||
return Write-Warning("ERROR: vban.enable is write only")
|
||||
}`
|
||||
{
|
||||
param( [bool]$arg )
|
||||
Param_Set -PARAM 'vban.Enable' -VALUE $(if ($arg) {1} else {0})
|
||||
}
|
||||
|
||||
$CustomObject
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user