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

Function _fetchHeader

static/js/chunkedAudioEngine.js:172–176  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

170 // --- fetch helpers ---
171
172 async function _fetchHeader(url) {
173 const res = await fetch(url, { headers: { Range: "bytes=0-1023" } });
174 const buf = await res.arrayBuffer();
175 return _parseWavHeader(buf);
176 }
177
178 async function _fetchPcm(stem, chunkIdx) {
179 const { url, header } = stem;

Callers 1

createChunkedAudioEngineFunction · 0.85

Calls 1

_parseWavHeaderFunction · 0.85

Tested by

no test coverage detected