@emu198x/zx-spectrum 0.4.1 → 0.4.2

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.
package/README.md CHANGED
@@ -47,6 +47,7 @@ the browser will blur the pixels.
47
47
  | `tick(elapsedMs)` | Run elapsed real time and draw. Returns frames run. |
48
48
  | `loadSnapshot(bytes, format)` | Load a `.sna` or `.z80` snapshot. |
49
49
  | `load(slot, kind, bytes)` | Load media — for example a tape into `tape-1`. |
50
+ | `autoload(maxBootFrames)` | Load the tape in `tape-1`: type `LOAD ""` and press play. A machine that has already run is reset first; the tape stays in. |
50
51
  | `keyDown(code)` / `keyUp(code)` | Feed a DOM `KeyboardEvent.code`. |
51
52
  | `setAudioEnabled(on)` | Start or stop audio. |
52
53
  | `configureAudio(rate, channels, capacity)` | Match the page's `AudioContext`. |
@@ -27,6 +27,9 @@ export class Spectrum {
27
27
  * the editor prompt to be repainted before it is read, and for the 128K
28
28
  * family's loader to be listening before the tape rolls.
29
29
  *
30
+ * A machine that has already run is reset first, keeping the tape, so
31
+ * choosing a tape works however the machine has been used (#1569).
32
+ *
30
33
  * Returns the number of frames spent waiting for boot. Load a tape first.
31
34
  *
32
35
  * # Errors
@@ -43,7 +46,7 @@ export class Spectrum {
43
46
  /**
44
47
  * Builds a 48K attached to `canvas`, from ROM bytes the page supplies.
45
48
  *
46
- * Async even though nothing here awaits: restoring the GPU path (#1436)
49
+ * Async even though nothing here awaits: adopting the GPU path (#1414)
47
50
  * needs an adapter, and acquiring one is async. Shipping this synchronous
48
51
  * would make that a breaking change for every consumer.
49
52
  *
@@ -45,6 +45,9 @@ export class Spectrum {
45
45
  * the editor prompt to be repainted before it is read, and for the 128K
46
46
  * family's loader to be listening before the tape rolls.
47
47
  *
48
+ * A machine that has already run is reset first, keeping the tape, so
49
+ * choosing a tape works however the machine has been used (#1569).
50
+ *
48
51
  * Returns the number of frames spent waiting for boot. Load a tape first.
49
52
  *
50
53
  * # Errors
@@ -74,7 +77,7 @@ export class Spectrum {
74
77
  /**
75
78
  * Builds a 48K attached to `canvas`, from ROM bytes the page supplies.
76
79
  *
77
- * Async even though nothing here awaits: restoring the GPU path (#1436)
80
+ * Async even though nothing here awaits: adopting the GPU path (#1414)
78
81
  * needs an adapter, and acquiring one is async. Shipping this synchronous
79
82
  * would make that a breaking change for every consumer.
80
83
  *
@@ -703,7 +706,7 @@ function __wbg_get_imports() {
703
706
  return ret;
704
707
  },
705
708
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
706
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 30, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
709
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 29, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
707
710
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d6cb7d81ec28c0ae___convert__closures_____invoke___wasm_bindgen_d6cb7d81ec28c0ae___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_d6cb7d81ec28c0ae___JsError___true_);
708
711
  return ret;
709
712
  },
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@emu198x/zx-spectrum",
3
3
  "type": "module",
4
4
  "description": "ZX Spectrum in the browser, published to npm as @emu198x/zx-spectrum",
5
- "version": "0.4.1",
5
+ "version": "0.4.2",
6
6
  "license": "SEE LICENSE IN README.md",
7
7
  "repository": {
8
8
  "type": "git",