mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-09 17:33:33 +00:00
add cmdletbinding to examples for debug, verbose flags
add verbose,debug flags to launch scripts
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
[cmdletbinding()]
|
||||
param()
|
||||
|
||||
Import-Module ..\..\lib\Voicemeeter.psm1
|
||||
Import-Module obs-powershell
|
||||
|
||||
$VerbosePreference = "Continue"
|
||||
|
||||
function CurrentProgramSceneChanged {
|
||||
param([System.Object]$data)
|
||||
Write-Host "Switched to scene", $data.sceneName
|
||||
@@ -10,19 +11,15 @@ function CurrentProgramSceneChanged {
|
||||
switch ($data.sceneName) {
|
||||
"START" {
|
||||
$vmr.strip[0].mute = !$vmr.strip[0].mute
|
||||
"Toggling Strip 0 mute"
|
||||
}
|
||||
"BRB" {
|
||||
$vmr.strip[0].gain = -8.3
|
||||
"Setting Strip 0 gain to -8.3"
|
||||
}
|
||||
"END" {
|
||||
$vmr.strip[0].mono = $true
|
||||
"Setting Strip 0 mono to `$true"
|
||||
}
|
||||
"LIVE" {
|
||||
$vmr.strip[0].color_x = 0.3
|
||||
"Setting Strip 0 color_x to 0.3"
|
||||
}
|
||||
default { "Expected START, BRB, END or LIVE scene" | Write-Warning; return }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user