add support for OSC timetag arg

This commit is contained in:
Joel Wetzell
2026-04-13 22:51:29 -05:00
parent 191d74a20a
commit 16093f2509
+8 -1
View File
@@ -434,9 +434,16 @@ func readOSCArg(bytes []byte, oscType string) (OSCArg, []byte, error) {
}
oscArg.Value = argFloat
remainingBytes = bytesLeft
case "t":
argTimeTag, bytesLeft, err := readOSCTimeTag(bytes)
if err != nil {
readArgError = err
}
oscArg.Value = argTimeTag
remainingBytes = bytesLeft
default:
fmt.Printf("unsupported osc type: %s\n", oscType)
readArgError = errors.New("unsupported osc type: " + oscType)
readArgError = errors.New("unsupported OSC argument type: " + oscType)
}
return oscArg, remainingBytes, readArgError
}