Spaces:
Runtime error
Runtime error
Commit
·
bd571b5
1
Parent(s):
91f6b6f
update mixer
Browse files
app.py
CHANGED
@@ -900,6 +900,7 @@ def playsound2():
|
|
900 |
print("soundfilename:", soundfilename)
|
901 |
# return None
|
902 |
# playsound(soundfilename)
|
|
|
903 |
mixer.music.load(soundfilename)
|
904 |
mixer.music.play()
|
905 |
except Exception as e:
|
|
|
900 |
print("soundfilename:", soundfilename)
|
901 |
# return None
|
902 |
# playsound(soundfilename)
|
903 |
+
mixer.init()
|
904 |
mixer.music.load(soundfilename)
|
905 |
mixer.music.play()
|
906 |
except Exception as e:
|