Files
osc-go/types.go
T
2024-12-26 14:57:40 -06:00

33 lines
381 B
Go

package osc
type OSCPacket interface {
ToBytes() []byte
}
type OSCBundle struct {
Contents []OSCPacket
TimeTag OSCTimeTag
}
type OSCArg struct {
Value any
Type string
}
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
}