MCPcopy Create free account
hub / github.com/csound/csound / requestStringChannel

Function requestStringChannel

Emscripten/module/src/CsoundScriptProcessorNode.js:399–407  ·  view source on GitHub ↗

Request the data from a string channel * * @param {string} channelName A string containing the channel name. * @param {function} callback An optional callback to be called when * the requested data is available. This can be set once for all * subsequent

(channelName, callback = null)

Source from the content-addressed store, hash-verified

397 */
398
399 requestStringChannel(channelName, callback = null) {
400 let pointerStringify = CSMOD["Pointer_stringify"];
401 let svalue = CSOUND.getStringChannel(this.csound, channelName);
402 this.stringChannels[channelName] = pointerStringify(svalue);
403 if (callback !== null)
404 this.stringChannelCallbacks[channelName] = callback;
405 if (typeof this.stringChannelCallbacks[channelName] !== "undefined")
406 this.stringChannelCallbacks[channelName]();
407 },
408
409 /** Get the latest requested channel data
410 *

Callers

nothing calls this directly

Calls 1

getStringChannelMethod · 0.45

Tested by

no test coverage detected