From fce4c51c563c0aaf052a327a120a3ab1fac5b787 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Fri, 30 Apr 2021 17:07:09 +0100 Subject: [PATCH] update to voicemeeter root script now using psm1 --- lib/{voicemeeter.ps1 => Voicemeeter.psm1} | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) rename lib/{voicemeeter.ps1 => Voicemeeter.psm1} (61%) diff --git a/lib/voicemeeter.ps1 b/lib/Voicemeeter.psm1 similarity index 61% rename from lib/voicemeeter.ps1 rename to lib/Voicemeeter.psm1 index 0507ab0..725587c 100644 --- a/lib/voicemeeter.ps1 +++ b/lib/Voicemeeter.psm1 @@ -13,7 +13,7 @@ class Remote { $this.Setup() } - [void] Setup () { + [void] Setup() { Login -TYPE $this.type $this.button = Buttons @@ -21,11 +21,25 @@ class Remote { $this.bus = Buses } - [void] Logout () { + [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