@vgai/engine 0.5.45 → 0.5.46
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-party-systems.d.ts","sourceRoot":"","sources":["../../src/adapter/first-party-systems.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EACV,YAAY,EAKZ,aAAa,EACb,iBAAiB,EAElB,MAAM,kBAAkB,CAAC;AAmC1B,+EAA+E;AAC/E,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,CAI9D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,SAAS,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"first-party-systems.d.ts","sourceRoot":"","sources":["../../src/adapter/first-party-systems.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EACV,YAAY,EAKZ,aAAa,EACb,iBAAiB,EAElB,MAAM,kBAAkB,CAAC;AAmC1B,+EAA+E;AAC/E,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,CAI9D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,SAAS,GAAG,YAAY,CAmKvE;AAED;;;;;;;;uEAQuE;AACvE,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,cAAc,EACnB,iBAAiB,GAAE;IACjB,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,MAAM,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC;IAC1E,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC;CAC1C,GACL,iBAAiB,CAUnB"}
|
|
@@ -179,10 +179,12 @@ export function createAudioSystemAdapter(audio) {
|
|
|
179
179
|
},
|
|
180
180
|
/** Native Web Audio tap used by the editor's gameplay recorder. It is a
|
|
181
181
|
* sink beside the speakers, never an insert, so recording cannot change
|
|
182
|
-
* what the player hears.
|
|
182
|
+
* what the player hears. A suspended context produces no audio frames and
|
|
183
|
+
* stalls MediaRecorder muxing, so it cannot supply a recording track. */
|
|
183
184
|
acquireRecordingStream() {
|
|
184
185
|
const recordingContext = nativeAudioContext(audio);
|
|
185
186
|
if (!recordingContext ||
|
|
187
|
+
recordingContext.state !== 'running' ||
|
|
186
188
|
typeof recordingContext.createMediaStreamDestination !== 'function') {
|
|
187
189
|
return null;
|
|
188
190
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@vgai/engine",
|
|
3
3
|
"author": "Volter AI, Inc.",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
-
"version": "0.5.
|
|
5
|
+
"version": "0.5.46",
|
|
6
6
|
"description": "Readable TypeScript game engine and universal host for Three.js, PixiJS, and React games.",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"game-engine",
|
|
@@ -197,11 +197,13 @@ export function createAudioSystemAdapter(audio: GameAudio): AudioAdapter {
|
|
|
197
197
|
|
|
198
198
|
/** Native Web Audio tap used by the editor's gameplay recorder. It is a
|
|
199
199
|
* sink beside the speakers, never an insert, so recording cannot change
|
|
200
|
-
* what the player hears.
|
|
200
|
+
* what the player hears. A suspended context produces no audio frames and
|
|
201
|
+
* stalls MediaRecorder muxing, so it cannot supply a recording track. */
|
|
201
202
|
acquireRecordingStream(): AudioRecordingHandle | null {
|
|
202
203
|
const recordingContext = nativeAudioContext(audio);
|
|
203
204
|
if (
|
|
204
205
|
!recordingContext ||
|
|
206
|
+
recordingContext.state !== 'running' ||
|
|
205
207
|
typeof recordingContext.createMediaStreamDestination !== 'function'
|
|
206
208
|
) {
|
|
207
209
|
return null;
|