We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
audio.stop()
microphone.stop_recording()
With audio it can take quite a few milliseconds before audio.is_playing() returns False:
audio.is_playing()
False
>>> audio.play(microbit.Sound.HELLO, wait=False); audio.stop(); audio.is_playing() True >>> audio.play(microbit.Sound.HELLO, wait=False); audio.stop(); sleep(6); audio.is_playing() False
With microphone the wait is a lot shorter, but still present:
>>> af = audio.AudioFrame(1000) >>> microphone.record_into(af, wait=False); microphone.stop_recording(); microphone.is_recording() True >>> microphone.record_into(af, wait=False); microphone.stop_recording(); sleep(1); microphone.is_recording() False
The text was updated successfully, but these errors were encountered:
dpgeorge
No branches or pull requests
With audio it can take quite a few milliseconds before
audio.is_playing()
returnsFalse
:With microphone the wait is a lot shorter, but still present:
The text was updated successfully, but these errors were encountered: