fix:update music could not play in PAIA Desktop

This commit is contained in:
Kylin_on_Mac 2023-11-17 11:47:18 +08:00
parent c1a37d0aae
commit fff075d4b4
3 changed files with 1 additions and 1 deletions

BIN
asset/music/bgm.mp3 Normal file

Binary file not shown.

Binary file not shown.

View File

@ -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"))