Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Sound effect not stopping
-
Hi, can anyone please help me with this sound issue... my sound plays fine, but will not stop. I tried many different solutions but just can not get the play to stop.
import sound, time
y = "room_One.mp3"
x = sound.play_effect(y)
sound.play_effect(y)
time.sleep(5)
sound.stop_effect(x) -
@starrshaw the sound is being played twice but the call to stop it playing is only made once.
import sound, time y = "room_One.mp3" x = sound.play_effect(y) sound.play_effect(y) # <- This call can be removed time.sleep(5) sound.stop_effect(x)
-
Thanks Cethric! That was it!