Open
Description
On pygbag 0.2.0, running the following code in debug mode:
Input
import pygame as pg
pg.init()
pg.mixer.init()
sound = pg.mixer.Sound("thunder.ogg")
try:
sound.play()
print("play pass")
except:
print("play fail")
try:
sound.stop()
print("stop pass")
except:
print("stop fail")
try:
sound.fadeout(100)
print("fadeout pass")
except:
print("fadeout fail")
try:
sound.set_volume(0.5)
print("set_volume pass")
except:
print("set_volume fail")
try:
sound.get_volume()
print("get_volume pass")
except:
print("get_volume fail")
Results in this output:
play pass
stop pass
fadeout fail
set_volume pass
get_volume pass
get_num_channels fail
get_length fail
get_raw fail