pxt-microbit
pxt-microbit copied to clipboard
Simulator records audio for a longer time than the device
The beta simulator currently records for about 12 seconds, and the device around 5 seconds.
input.onButtonPressed(Button.A, function () {
record.startRecording(record.BlockingState.Blocking)
})
input.onButtonPressed(Button.B, function () {
record.playAudio(record.BlockingState.Nonblocking)
})
Tested with: makecode.microbit.org version: 7.1.45 Microsoft MakeCode version: 11.4.31 microbit runtime version: v2.2.0-rc6 codal-microbit-v2 runtime version: v0.3.0
And test deployment from:
- https://github.com/microsoft/pxt-microbit/pull/6362