mirror of
https://github.com/jwetzell/osc-js.git
synced 2026-08-15 20:23:42 +00:00
add support for osc infinitum type
This commit is contained in:
@@ -173,7 +173,7 @@ export const oscTypeConverterMap: { [key: string]: OSCTypeConverter } = {
|
||||
},
|
||||
r: {
|
||||
toBuffer: (color) => {
|
||||
if (color === undefined || color === null){
|
||||
if (color === undefined || color === null) {
|
||||
throw new TypeError('osc type r called with undefined or null value');
|
||||
}
|
||||
|
||||
@@ -228,4 +228,12 @@ export const oscTypeConverterMap: { [key: string]: OSCTypeConverter } = {
|
||||
return [null, buffer];
|
||||
},
|
||||
},
|
||||
I: {
|
||||
toBuffer: () => {
|
||||
return new Uint8Array();
|
||||
},
|
||||
fromBuffer: (buffer) => {
|
||||
return [Number.MAX_SAFE_INTEGER, buffer];
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user