mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-01-18 05:10:48 +00:00
reword in readme
add print obs, ws versions
This commit is contained in:
parent
7f5d92603e
commit
1d115f4132
@ -9,7 +9,8 @@ Demonstrates how to sync Voicemeeter states with OBS scene switches.
|
||||
|
||||
## Use
|
||||
|
||||
This example assumes your OBS connection info saved in `config.psd1`, placed next to `Vm-Obs-Sync.ps1`:
|
||||
This example assumes the following:
|
||||
- OBS connection info saved in `config.psd1`, placed next to `Vm-Obs-Sync.ps1`:
|
||||
|
||||
```psd1
|
||||
@{
|
||||
@ -19,4 +20,6 @@ This example assumes your OBS connection info saved in `config.psd1`, placed nex
|
||||
}
|
||||
```
|
||||
|
||||
- OBS scenes named `START`, `BRB`, `END` and `LIVE`
|
||||
|
||||
Simply run the script and change current OBS scene.
|
||||
|
@ -18,7 +18,7 @@ function CurrentProgramSceneChanged($data) {
|
||||
"BRB" { $vmr.strip[0].gain = -8.3 }
|
||||
"END" { $vmr.strip[0].mono = $true }
|
||||
"LIVE" { $vmr.strip[0].color_x = 0.3 }
|
||||
default { "Expected START, BRB, END or LIVE scene" | Write-Host }
|
||||
default { "Expected START, BRB, END or LIVE scene" | Write-Warning; return }
|
||||
}
|
||||
$info[$data.SceneName] | Write-Host
|
||||
}
|
||||
@ -33,6 +33,9 @@ function main {
|
||||
$vmr = Get-RemoteBasic
|
||||
$conn = ConnFromFile
|
||||
$r_client = Get-OBSRequest -hostname $conn.hostname -port $conn.port -pass $conn.password
|
||||
$resp = $r_client.getVersion()
|
||||
"obs version:" + $resp.obsVersion | Write-Host
|
||||
"websocket version:" + $resp.obsWebSocketVersion | Write-Host
|
||||
|
||||
$e_client = Get-OBSEvent -hostname $conn.hostname -port $conn.port -pass $conn.password
|
||||
$callbacks = @("CurrentProgramSceneChanged", ${function:CurrentProgramSceneChanged})
|
||||
|
Loading…
Reference in New Issue
Block a user