mirror of
https://github.com/jwetzell/osc-go.git
synced 2026-08-06 15:53:38 +00:00
33 lines
381 B
Go
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
|
|
}
|