mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-18 21:43:32 +00:00
update to voicemeeter root script
now using psm1
This commit is contained in:
45
lib/Voicemeeter.psm1
Normal file
45
lib/Voicemeeter.psm1
Normal file
@@ -0,0 +1,45 @@
|
||||
. $PSScriptRoot\base.ps1
|
||||
|
||||
class Remote {
|
||||
[String]$type
|
||||
[System.Collections.ArrayList]$button
|
||||
[System.Collections.ArrayList]$strip
|
||||
[System.Collections.ArrayList]$bus
|
||||
|
||||
# Constructor
|
||||
Remote ([String]$type)
|
||||
{
|
||||
$this.type = $type
|
||||
$this.Setup()
|
||||
}
|
||||
|
||||
[void] Setup() {
|
||||
Login -TYPE $this.type
|
||||
|
||||
$this.button = Buttons
|
||||
$this.strip = Strips
|
||||
$this.bus = Buses
|
||||
}
|
||||
|
||||
[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
|
||||
Reference in New Issue
Block a user