mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-01-18 05:10:48 +00:00
Create example.ps1
Added example from repo root
This commit is contained in:
parent
6a68e5f33e
commit
deb04df551
28
example.ps1
Normal file
28
example.ps1
Normal file
@ -0,0 +1,28 @@
|
||||
Import-Module .\lib\Voicemeeter.psm1
|
||||
|
||||
try {
|
||||
$vmr = Get-RemoteBanana
|
||||
|
||||
$hash = @{
|
||||
"Strip[0].Mute" = $true
|
||||
"Strip[1].Mute" = $true
|
||||
"Strip[2].Mute" = $false
|
||||
"Strip[0].Mono" = $true
|
||||
"Strip[1].Mono" = $false
|
||||
"Strip[2].Mono" = $true
|
||||
}
|
||||
|
||||
$vmr.Set_Multi($hash)
|
||||
|
||||
$hash = @{
|
||||
"Strip[0].Mute" = $false
|
||||
"Strip[1].Mute" = $false
|
||||
"Strip[2].Mute" = $false
|
||||
"Strip[0].Mono" = $true
|
||||
"Strip[1].Mono" = $true
|
||||
"Strip[2].Mono" = $false
|
||||
}
|
||||
|
||||
$vmr.Set_Multi($hash)
|
||||
}
|
||||
finally { $vmr.Logout() }
|
Loading…
Reference in New Issue
Block a user