MCPcopy Create free account
hub / github.com/stemdeckapp/stemdeck / _stopNodes

Function _stopNodes

static/js/chunkedAudioEngine.js:227–235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

225 // --- node lifecycle ---
226
227 function _stopNodes() {
228 for (const stem of stemMap.values()) {
229 for (const node of stem.activeNodes) {
230 try { node.stop(); } catch { /* already stopped */ }
231 try { node.disconnect(); } catch { /* noop */ }
232 }
233 stem.activeNodes = [];
234 }
235 }
236
237 // Schedule all stems' AudioBufferSourceNodes to start at `when` (AudioContext
238 // time), beginning `startSecs` into each buffer. Returns the duration of audio

Callers 2

pauseFunction · 0.85
seekFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected