Files
osc-go/pkg/osc/types.go
T
2024-12-22 14:16:57 -06:00

33 lines
381 B
Go

package osc
type OSCPacket interface {
ToBytes() []byte
}
type OSCBundle struct {
TimeTag OSCTimeTag
Contents []OSCPacket
}
type OSCArg struct {
Type string
Value any
}
type OSCMessage struct {
Address string
Args []OSCArg
}
type OSCColor struct {
r uint8
g uint8
b uint8
a uint8
}
type OSCTimeTag struct {
seconds int32
fractionalSeconds int32
}