WebSockets: export Node constants in channel.js
This commit is contained in:
parent
2b8e9ceb89
commit
dbbd3b0eaf
@ -16,12 +16,27 @@
|
|||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const JSON_INF = 1.0e+128;
|
export const JSON_INF = 1.0e+128;
|
||||||
|
|
||||||
|
export const Node = Object.freeze({
|
||||||
|
TEMPO: "tempo",
|
||||||
|
STRIP_DESC: "strip_desc",
|
||||||
|
STRIP_METER: "strip_meter",
|
||||||
|
STRIP_GAIN: "strip_gain",
|
||||||
|
STRIP_PAN: "strip_pan",
|
||||||
|
STRIP_MUTE: "strip_mute",
|
||||||
|
STRIP_PLUGIN_DESC: "strip_plugin_desc",
|
||||||
|
STRIP_PLUGIN_ENABLE: "strip_plugin_enable",
|
||||||
|
STRUP_PLUGIN_PARAM_DESC: "strip_plugin_param_desc",
|
||||||
|
STRIP_PLUGIN_PARAM_VALUE: "strip_plugin_param_value"
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
export function nodeAddressHash(node, addr) {
|
export function nodeAddressHash(node, addr) {
|
||||||
return [node].concat(addr).join('_');
|
return [node].concat(addr).join('_');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export class MessageChannel {
|
export class MessageChannel {
|
||||||
|
|
||||||
constructor (host) {
|
constructor (host) {
|
||||||
|
Loading…
Reference in New Issue
Block a user