mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-18 13:33:31 +00:00
add load profiles, examples, update readme
add Get_Profiles and Set_Profile functions. Now possible to load many parameters from a psd1 config file. example config added add Config Files section to readme
This commit is contained in:
14
README.md
14
README.md
@@ -190,6 +190,20 @@ $vmr.Setter('Strip[4].Label', 'stripname')
|
||||
$vmr.Setter('Strip[0].Gain', -3.6)
|
||||
```
|
||||
|
||||
### Config Files
|
||||
`$vmr.Set_Profile('config')`
|
||||
|
||||
You may load config files in psd1 format. An example profile has been included with the package. Remember to save current settings before loading a profile. To test simply rename _profiles directory to profiles. It will be loaded into memory but not set. To set one you may do:
|
||||
```powershell
|
||||
Import-Module Voicemeeter
|
||||
try {
|
||||
$vmr = Get-RemoteBanana
|
||||
$vmr.Set_Profile("config")
|
||||
}
|
||||
finally { $vmr.Logout() }
|
||||
```
|
||||
will load a config file at profiles/banana/config.psd1 for Voicemeeter Banana.
|
||||
|
||||
### Run tests
|
||||
Run tests using .\runall.ps1 which accepts two parameters:
|
||||
- tag Run tests of this type
|
||||
|
||||
Reference in New Issue
Block a user