Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: OSC Message found unknown argument type #83

Open
SeanBannister opened this issue Dec 3, 2024 · 0 comments
Open

Error: OSC Message found unknown argument type #83

SeanBannister opened this issue Dec 3, 2024 · 0 comments

Comments

@SeanBannister
Copy link

SeanBannister commented Dec 3, 2024

In the docs it mentions "osc-js supports standard and extended (non-standard) argument types since version 2.3.0" this doesn't appear to be the case. I was trying to provide the "r" type which Resolume and other software uses to receive 32 bit RGBA color and received the error:

Error: OSC Message found unknown argument type

Looking at the code the issue appears to be here:

osc-js/src/message.js

Lines 143 to 169 in f72a9ca

this.args.forEach((value, index) => {
const type = this.types[index]
if (type === 'i') {
argument = new AtomicInt32(value)
} else if (type === 'h') {
argument = new AtomicInt64(value)
} else if (type === 't') {
argument = new AtomicUInt64(value)
} else if (type === 'f') {
argument = new AtomicFloat32(value)
} else if (type === 'd') {
argument = new AtomicFloat64(value)
} else if (type === 's') {
argument = new AtomicString(value)
} else if (type === 'b') {
argument = new AtomicBlob(value)
} else if (type === 'T') {
argument = VALUE_TRUE
} else if (type === 'F') {
argument = VALUE_FALSE
} else if (type === 'N') {
argument = VALUE_NONE
} else if (type === 'I') {
argument = VALUE_INFINITY
} else {
throw new Error('OSC Message found unknown argument type')
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant