Closed microbit-carlos closed 2 months ago
I'm guessing
0
is the default value and in that case it'll use theAudioFrame
rate. If that's the case, should the default value be changed toNone
?
That's correct, the default is 0.
Now changed so the default is None
.
microphone.record()
andAudioFrame
raise errors if the rate is set to zero:But
microphone.record_into()
doesn't:I'm guessing
0
is the default value and in that case it'll use theAudioFrame
rate. If that's the case, should the default value be changed toNone
? (similar to https://github.com/microbit-foundation/micropython-microbit-v2/issues/186#issuecomment-2075036123)