mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-02-26 00:09:11 +00:00
- DCA added to Client struct - dca command added to both CLIs help mds updated
31 lines
605 B
Go
31 lines
605 B
Go
package xair
|
|
|
|
var xairAddressMap = map[string]string{
|
|
"main": "/lr",
|
|
"strip": "/ch/%02d",
|
|
"bus": "/bus/%d",
|
|
"headamp": "/headamp/%02d",
|
|
"snapshot": "/-snap",
|
|
"dca": "/dca/%d",
|
|
}
|
|
|
|
var x32AddressMap = map[string]string{
|
|
"main": "/main/st",
|
|
"mainmono": "/main/m",
|
|
"matrix": "/mtx/%02d",
|
|
"strip": "/ch/%02d",
|
|
"bus": "/bus/%02d",
|
|
"headamp": "/headamp/%03d",
|
|
"snapshot": "/-snap",
|
|
"dca": "/dca/%d",
|
|
}
|
|
|
|
func addressMapFromMixerKind(kind mixerKind) map[string]string {
|
|
switch kind {
|
|
case kindX32:
|
|
return x32AddressMap
|
|
default:
|
|
return xairAddressMap
|
|
}
|
|
}
|