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)
| 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 | * |
nothing calls this directly
no test coverage detected