mirror of
https://github.com/onyx-and-iris/vbantxt.git
synced 2024-11-24 10:50:50 +00:00
fix default config.toml dir in README
This commit is contained in:
parent
ae170ca572
commit
c063feb919
20
README.md
20
README.md
@ -41,13 +41,13 @@ func main() {
|
||||
streamname string = "onyx"
|
||||
)
|
||||
|
||||
vbantxtClient, err := vbantxt.New(host, port, streamname)
|
||||
client, err := vbantxt.New(host, port, streamname)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
defer vbantxtClient.Close()
|
||||
defer client.Close()
|
||||
|
||||
err = vbantxtClient.Send("strip[0].mute=0")
|
||||
err = client.Send("strip[0].mute=0")
|
||||
if err != nil {
|
||||
_, _ = fmt.Fprintf(os.Stderr, "Error: %s", err)
|
||||
os.Exit(1)
|
||||
@ -60,18 +60,18 @@ func main() {
|
||||
Pass `host`, `port` and `streamname` as flags, for example:
|
||||
|
||||
```
|
||||
vbantxt-cli -h="gamepc.local" -p=6980 -s=Command1 "strip[0].mute=1 strip[1].mono=1"
|
||||
vbantxt -h="gamepc.local" -p=6980 -s=Command1 "strip[0].mute=1 strip[1].mono=1"
|
||||
```
|
||||
|
||||
You may also store them in a `config.toml` located in `home directory / .config / vbantxt_cli /`
|
||||
You may also store them in a `config.toml` located in `home directory / .config / vbantxt /`
|
||||
|
||||
A valid `config.toml` might look like this:
|
||||
|
||||
```toml
|
||||
[connection]
|
||||
Host="gamepc.local"
|
||||
Port=6980
|
||||
Streamname="Command1"
|
||||
host="gamepc.local"
|
||||
port=6980
|
||||
streamname="Command1"
|
||||
```
|
||||
|
||||
- `host` defaults to "localhost"
|
||||
@ -88,7 +88,7 @@ The vbantxt-cli utility accepts a single string request or an array of string re
|
||||
|
||||
For example, in Windows with Powershell you could:
|
||||
|
||||
`vbantxt-cli $(Get-Content .\script.txt)`
|
||||
`vbantxt $(Get-Content .\script.txt)`
|
||||
|
||||
Or with Bash:
|
||||
|
||||
@ -109,7 +109,7 @@ bus[3].eq.On=0
|
||||
Sending commands to VB-Audio Matrix is also possible, for example:
|
||||
|
||||
```
|
||||
vbantxt-cli -s=streamname "Point(ASIO128.IN[2],ASIO128.OUT[1]).dBGain = -8"
|
||||
vbantxt -s=streamname "Point(ASIO128.IN[2],ASIO128.OUT[1]).dBGain = -8"
|
||||
```
|
||||
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user