mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-18 05:23:32 +00:00
add gain,comp,limit to strip. Update tests.
Added gain, comp and limit attributes to strip class Updated pester unit tests to reflect changes. Update changelog
This commit is contained in:
@@ -131,13 +131,43 @@ class Strip {
|
||||
|
||||
hidden $_gain = $($this | Add-Member ScriptProperty 'gain' `
|
||||
{
|
||||
$this.Getter($this.cmd('gain'))
|
||||
[math]::Round($this.Getter($this.cmd('gain')), 1)
|
||||
}`
|
||||
{
|
||||
param ( [Single]$arg )
|
||||
$this._gain = $this.Setter($this.cmd('gain'), $arg)
|
||||
}
|
||||
)
|
||||
|
||||
hidden $_comp = $($this | Add-Member ScriptProperty 'comp' `
|
||||
{
|
||||
[math]::Round($this.Getter($this.cmd('comp')), 1)
|
||||
}`
|
||||
{
|
||||
param ( [Single]$arg )
|
||||
$this._comp = $this.Setter($this.cmd('comp'), $arg)
|
||||
}
|
||||
)
|
||||
|
||||
hidden $_gate = $($this | Add-Member ScriptProperty 'gate' `
|
||||
{
|
||||
[math]::Round($this.Getter($this.cmd('gate')), 1)
|
||||
}`
|
||||
{
|
||||
param ( [Single]$arg )
|
||||
$this._gate = $this.Setter($this.cmd('gate'), $arg)
|
||||
}
|
||||
)
|
||||
|
||||
hidden $_limit = $($this | Add-Member ScriptProperty 'limit' `
|
||||
{
|
||||
[Int]$this.Getter($this.cmd('limit'))
|
||||
}`
|
||||
{
|
||||
param ( [Single]$arg )
|
||||
$this._limit = $this.Setter($this.cmd('limit'), $arg)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Function Strips {
|
||||
|
||||
Reference in New Issue
Block a user