fix:update music could not play in PAIA Desktop
This commit is contained in:
parent
c1a37d0aae
commit
fff075d4b4
Binary file not shown.
Binary file not shown.
|
@ -20,7 +20,7 @@ class SoundController():
|
||||||
def load_sounds(self):
|
def load_sounds(self):
|
||||||
try:
|
try:
|
||||||
pygame.mixer.init()
|
pygame.mixer.init()
|
||||||
pygame.mixer.music.load(path.join(MUSIC_PATH, "bgm.wav"))
|
pygame.mixer.music.load(path.join(MUSIC_PATH, "bgm.mp3"))
|
||||||
pygame.mixer.music.set_volume(0.6)
|
pygame.mixer.music.set_volume(0.6)
|
||||||
self._eating_good = pygame.mixer.Sound(path.join(SOUND_PATH, "eat_good_food.mp3"))
|
self._eating_good = pygame.mixer.Sound(path.join(SOUND_PATH, "eat_good_food.mp3"))
|
||||||
self._eating_bad = pygame.mixer.Sound(path.join(SOUND_PATH, "eat_bad_food.mp3"))
|
self._eating_bad = pygame.mixer.Sound(path.join(SOUND_PATH, "eat_bad_food.mp3"))
|
||||||
|
|
Loading…
Reference in New Issue