mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2025-01-18 05:10:48 +00:00
move config section in readme
This commit is contained in:
parent
4f0bad9b20
commit
42ed3d443a
34
README.md
34
README.md
@ -260,6 +260,23 @@ try {
|
||||
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
|
||||
|
||||
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)
|
||||
```
|
||||
|
||||
### 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:
|
||||
|
Loading…
Reference in New Issue
Block a user