mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-01-18 13:20:47 +00:00
a66a101ba1
Added vban_in/vban_out to definetypes in base Added string attribute label for strips Added vban.ps1 which defines instream/oustream attributes. Version bumped and changelog updated Unit tests updated to reflect changes
53 lines
1.1 KiB
PowerShell
53 lines
1.1 KiB
PowerShell
. $PSScriptRoot\base.ps1
|
|
|
|
class Remote {
|
|
[String]$type
|
|
[System.Collections.ArrayList]$button
|
|
[System.Collections.ArrayList]$strip
|
|
[System.Collections.ArrayList]$bus
|
|
[System.Collections.ArrayList]$vban_in
|
|
[System.Collections.ArrayList]$vban_out
|
|
|
|
# Constructor
|
|
Remote ([String]$type)
|
|
{
|
|
$this.type = $type
|
|
$this.Setup()
|
|
}
|
|
|
|
[void] Setup() {
|
|
if(Setup_DLL) {
|
|
Login -TYPE $this.type
|
|
|
|
$this.button = Buttons
|
|
$this.strip = Strips
|
|
$this.bus = Buses
|
|
$this.vban_in = Vban_In
|
|
$this.vban_out = Vban_Out
|
|
}
|
|
else { Exit }
|
|
}
|
|
|
|
[void] Logout() {
|
|
Logout
|
|
}
|
|
|
|
[void] Set_Multi([HashTable]$hash) {
|
|
Param_Set_Multi -HASH $hash
|
|
}
|
|
}
|
|
|
|
Function Get-RemoteBasic {
|
|
return [Remote]::new('basic')
|
|
}
|
|
|
|
Function Get-RemoteBanana {
|
|
return [Remote]::new('banana')
|
|
}
|
|
|
|
Function Get-RemotePotato {
|
|
return [Remote]::new('potato')
|
|
}
|
|
|
|
Export-ModuleMember -Function Get-RemoteBasic, Get-RemoteBanana, Get-RemotePotato
|