mirror of
https://github.com/onyx-and-iris/vbantxt.git
synced 2024-11-22 01:40: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"
|
streamname string = "onyx"
|
||||||
)
|
)
|
||||||
|
|
||||||
vbantxtClient, err := vbantxt.New(host, port, streamname)
|
client, err := vbantxt.New(host, port, streamname)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
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 {
|
if err != nil {
|
||||||
_, _ = fmt.Fprintf(os.Stderr, "Error: %s", err)
|
_, _ = fmt.Fprintf(os.Stderr, "Error: %s", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
@ -60,18 +60,18 @@ func main() {
|
|||||||
Pass `host`, `port` and `streamname` as flags, for example:
|
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:
|
A valid `config.toml` might look like this:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[connection]
|
[connection]
|
||||||
Host="gamepc.local"
|
host="gamepc.local"
|
||||||
Port=6980
|
port=6980
|
||||||
Streamname="Command1"
|
streamname="Command1"
|
||||||
```
|
```
|
||||||
|
|
||||||
- `host` defaults to "localhost"
|
- `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:
|
For example, in Windows with Powershell you could:
|
||||||
|
|
||||||
`vbantxt-cli $(Get-Content .\script.txt)`
|
`vbantxt $(Get-Content .\script.txt)`
|
||||||
|
|
||||||
Or with Bash:
|
Or with Bash:
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ bus[3].eq.On=0
|
|||||||
Sending commands to VB-Audio Matrix is also possible, for example:
|
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