Files
osc-go/types.go
T
2026-09-10 08:30:59 -05:00

33 lines
463 B
Go

package osc
type Packet interface {
ToBytes() ([]byte, error)
}
type Bundle struct {
Contents []Packet `json:"contents"`
TimeTag TimeTag `json:"timeTag"`
}
type Arg struct {
Value any `json:"value"`
Type string `json:"type"`
}
type Message struct {
Address string `json:"address"`
Args []Arg `json:"args"`
}
type Color struct {
r uint8
g uint8
b uint8
a uint8
}
type TimeTag struct {
seconds int32
fractionalSeconds int32
}