mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-02-04 07:27:47 +00:00
23 lines
411 B
Go
23 lines
411 B
Go
package xair
|
|
|
|
var xairAddressMap = map[string]string{
|
|
"strip": "/ch/%02d",
|
|
"bus": "/bus/%01d",
|
|
"headamp": "/headamp/%02d",
|
|
}
|
|
|
|
var x32AddressMap = map[string]string{
|
|
"strip": "/ch/%02d",
|
|
"bus": "/bus/%02d",
|
|
"headamp": "/headamp/%02d",
|
|
}
|
|
|
|
func addressMapForMixerKind(kind MixerKind) map[string]string {
|
|
switch kind {
|
|
case KindX32:
|
|
return x32AddressMap
|
|
default:
|
|
return xairAddressMap
|
|
}
|
|
}
|