microsoft / pxt-adafruit

Microsoft MakeCode editor for Adafruit Circuit Playground Express
https://makecode.adafruit.com
Other
81 stars 77 forks source link

music.ringTone() cannot be stopped #1187

Open michaelperce opened 4 years ago

michaelperce commented 4 years ago

Documentation here specifies that music.ringTone() will continue to make a sound until music.stopAllSounds() is called. However, this pauses the tone but does not permanently stop it. The only way to make the tone stop is within the forever() {} loop to continuously call music.stopAllSounds() on every frame.

image