mirror of
https://github.com/jwetzell/osc-go.git
synced 2026-09-10 07:49:28 +00:00
add support for OSC timetag arg
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user