pxt-microbit 5.1.37 → 5.1.39
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/built/hexcache/{cb942257fb645dbb2ece3e25ce71d91839ee747b8a0d7885f91f712541206c8f.hex → 4f7e1302107dc4c35036d6ec17a6d3dd72d8b999eee0265a356c26e4092dcc69.hex} +7742 -7742
- package/built/hexcache/{a436224f1800e58f36df2b8ca733263a32b7be99dde51314732279c69f447a33.hex → 880b5730ca4c8b31bd46a37990b4956417502e6554e843109ac4f6c0cf467518.hex} +10406 -10400
- package/built/hexcache/{5da0b49827d78dfbcd5d6a1a3929470ae8b95e8d14bcf19e30b4087b98773c76.hex → 9e6beb74b616157d0bcf9ef614749aeba90c9c668d8d2eec3066aaa59d46848d.hex} +7256 -7256
- package/built/hexcache/{0ede0e4216d81ffb7848868ceb2376e56066e928fc797d28603f42bfff1311e0.hex → b9e7bbc64fc9947ff533140ce45568af7132a5c6c16b50d4adbd86f3deeef5b8.hex} +9822 -9816
- package/built/sim.d.ts +1 -0
- package/built/sim.js +6 -0
- package/built/target.js +1 -1
- package/built/target.json +1 -1
- package/built/targetlight.json +1 -1
- package/package.json +2 -2
package/built/sim.d.ts
CHANGED
|
@@ -526,6 +526,7 @@ declare namespace pxsim.light {
|
|
|
526
526
|
declare namespace pxsim.music {
|
|
527
527
|
function setBuiltInSpeakerEnabled(enabled: boolean): void;
|
|
528
528
|
function setSilenceLevel(level: number): void;
|
|
529
|
+
function isSoundPlaying(): boolean;
|
|
529
530
|
}
|
|
530
531
|
declare namespace pxsim.music {
|
|
531
532
|
interface Progression {
|
package/built/sim.js
CHANGED
|
@@ -2224,6 +2224,12 @@ var pxsim;
|
|
|
2224
2224
|
// ignore in v1,v2
|
|
2225
2225
|
}
|
|
2226
2226
|
music.setSilenceLevel = setSilenceLevel;
|
|
2227
|
+
function isSoundPlaying() {
|
|
2228
|
+
const audioActive = pxsim.AudioContextManager.isAudioElementActive();
|
|
2229
|
+
const soundExpressionPlaying = pxsim.codal.music.isSoundExpPlaying();
|
|
2230
|
+
return audioActive || soundExpressionPlaying || pxsim.record.audioIsPlaying();
|
|
2231
|
+
}
|
|
2232
|
+
music.isSoundPlaying = isSoundPlaying;
|
|
2227
2233
|
})(music = pxsim.music || (pxsim.music = {}));
|
|
2228
2234
|
})(pxsim || (pxsim = {}));
|
|
2229
2235
|
var pxsim;
|