Closed microbit-carlos closed 1 year ago
Play renamed to playAsync(), and a new 'play' added for blocking playback, similar added for record
Unfortuantely I should have tested this better before tagging... Whoops.
The async versions currently halt the processor, will investigate and issue a hotfix.
This should now be fixed in v0.2.54, but pxt is having issues integrating the changes, so keeping this issue open just in case...
MemorySource
andSoundExpressions
have already set up that pattern, does it make sense to do the same forStreamRecording
?The workaround in MakeCode, MicroPython and the OOB would be to just wait while
StreamRecording.isPlaying()
returns true, so not a big deal at all.