run through formatter

This commit is contained in:
2025-06-06 13:48:24 +01:00
parent 2d6437d37b
commit 0f68a2373d
3 changed files with 18 additions and 18 deletions

View File

@@ -6,28 +6,28 @@ Import-Module obs-powershell
function CurrentProgramSceneChanged {
param([System.Object]$data)
Write-Host "Switched to scene", $data.sceneName
Write-Host 'Switched to scene', $data.sceneName
switch ($data.sceneName) {
"START" {
'START' {
$vmr.strip[0].mute = !$vmr.strip[0].mute
}
"BRB" {
'BRB' {
$vmr.strip[0].gain = -8.3
}
"END" {
'END' {
$vmr.strip[0].mono = $true
}
"LIVE" {
'LIVE' {
$vmr.strip[0].color_x = 0.3
}
default { "Expected START, BRB, END or LIVE scene" | Write-Warning; return }
default { 'Expected START, BRB, END or LIVE scene' | Write-Warning; return }
}
}
function ExitStarted {
param([System.Object]$data)
"OBS shutdown has begun!" | Write-Host
'OBS shutdown has begun!' | Write-Host
break
}
@@ -38,12 +38,12 @@ function eventHandler($data) {
}
function ConnFromFile {
$configpath = Join-Path $PSScriptRoot "config.psd1"
$configpath = Join-Path $PSScriptRoot 'config.psd1'
return Import-PowerShellDataFile -Path $configpath
}
function main {
$vmr = Connect-Voicemeeter -Kind "basic"
$vmr = Connect-Voicemeeter -Kind 'basic'
$conn = ConnFromFile
$job = Watch-OBS -WebSocketURI "ws://$($conn.host):$($conn.port)" -WebSocketToken $conn.password