mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-18 05:23:32 +00:00
gainlayer, busmodes + mc,k added
gainlayers and busmodes added. mc, k added to virtual strips
This commit is contained in:
15
lib/bus.ps1
15
lib/bus.ps1
@@ -11,6 +11,9 @@ class Bus {
|
||||
AddBoolMembers -PARAMS @('mono', 'mute')
|
||||
AddStringMembers -PARAMS @('label')
|
||||
AddFloatMembers -PARAMS @('gain')
|
||||
|
||||
AddBusModeMembers -PARAMS @('normal', 'amix', 'bmix', 'repeat', 'composite', 'tvmix', 'upmix21',
|
||||
'upmix41', 'upmix61', 'centeronly', 'lfeonly', 'rearonly')
|
||||
}
|
||||
|
||||
[Single] Getter($cmd) {
|
||||
@@ -31,13 +34,23 @@ class Bus {
|
||||
|
||||
hidden $_eq = $($this | Add-Member ScriptProperty 'eq' `
|
||||
{
|
||||
$this.Getter($this.cmd('EQ.on'))
|
||||
[bool]$this.Getter($this.cmd('EQ.on'))
|
||||
}`
|
||||
{
|
||||
param ( $arg )
|
||||
$this._eq = $this.Setter($this.cmd('EQ.on'), $arg)
|
||||
}
|
||||
)
|
||||
|
||||
hidden $_eq_ab = $($this | Add-Member ScriptProperty 'eq_ab' `
|
||||
{
|
||||
[bool]$this.Getter($this.cmd('eq.ab'))
|
||||
}`
|
||||
{
|
||||
param ( $arg )
|
||||
$this._eq = $this.Setter($this.cmd('eq.ab'), $arg)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
class PhysicalBus : Bus {
|
||||
|
||||
Reference in New Issue
Block a user