@hyperframes/engine 0.7.106 → 0.7.108

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,29 @@
1
+ /**
2
+ * The RIFF chunk walk, which two WAV readers in this directory each had a copy
3
+ * of: `audioFxRender`'s `readWavChunks` and `audioVolumeEnvelope`'s
4
+ * `parseWavLayout`.
5
+ *
6
+ * Only the walk is shared. What the two do with the chunks is genuinely
7
+ * different — one wants a slice of the payload and lets the decoder judge the
8
+ * format, the other wants offsets to edit in place and refuses anything that is
9
+ * not 16-bit PCM — and folding those together would mean picking one behaviour
10
+ * for each difference, in the parser every render's audio passes through. So
11
+ * this yields chunks and holds no policy at all.
12
+ */
13
+ /**
14
+ * Every chunk after the 12-byte RIFF header, in the order they sit.
15
+ *
16
+ * Advances by each chunk's declared size, so ordering is not assumed — `data`
17
+ * may precede `fmt `, and trailing LIST/fact chunks are walked past rather than
18
+ * tripped over. Chunks are word-aligned, so an odd size carries a pad byte.
19
+ */
20
+ export function* riffChunks(buffer) {
21
+ let offset = 12;
22
+ while (offset + 8 <= buffer.length) {
23
+ const id = buffer.toString("ascii", offset, offset + 4);
24
+ const size = buffer.readUInt32LE(offset + 4);
25
+ yield { id, body: offset + 8, size };
26
+ offset += 8 + size + (size % 2);
27
+ }
28
+ }
29
+ //# sourceMappingURL=wavChunks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wavChunks.js","sourceRoot":"","sources":["../../src/services/wavChunks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAWH;;;;;;GAMG;AACH,MAAM,SAAS,CAAC,CAAC,UAAU,CAAC,MAAc;IACxC,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,OAAO,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QACnC,MAAM,EAAE,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC;QACxD,MAAM,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC7C,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;QACrC,MAAM,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;IAClC,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/engine",
3
- "version": "0.7.106",
3
+ "version": "0.7.108",
4
4
  "description": "Seekable web page to video rendering engine (Puppeteer + FFmpeg)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,8 +38,8 @@
38
38
  "linkedom": "^0.18.12",
39
39
  "puppeteer": "^25.2.1",
40
40
  "puppeteer-core": "^25.2.1",
41
- "@hyperframes/core": "^0.7.106",
42
- "@hyperframes/parsers": "^0.7.106"
41
+ "@hyperframes/core": "^0.7.108",
42
+ "@hyperframes/parsers": "^0.7.108"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/node": "^25.0.10",