mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-09 17:33:33 +00:00
run through formatter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user