move config section in readme

This commit is contained in:
onyx-and-iris 2022-06-27 15:23:16 +01:00
parent 4f0bad9b20
commit 42ed3d443a

View File

@ -260,6 +260,23 @@ try {
finally { $vmr.Logout() } finally { $vmr.Logout() }
``` ```
### Config Files
`$vmr.Set_Profile(<configname>)`
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.
### Remote class ### Remote class
Access to lower level Getters and Setters are provided with these functions: Access to lower level Getters and Setters are provided with these functions:
@ -282,23 +299,6 @@ $vmr.Setter('Strip[4].Label', 'stripname')
$vmr.Setter('Strip[0].Gain', -3.6) $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
Run tests using .\runall.ps1 which accepts two parameters: Run tests using .\runall.ps1 which accepts two parameters: