Bugfix : sound crash on windows -> no music for bill

This commit is contained in:
Philippe Roy 2022-04-24 16:16:35 +02:00
parent c1fa2b9aba
commit 3ea30d0f5a
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -163,8 +163,9 @@ def thread_cmd_stop():
# Sounds
###############################################################################
# FIXME : Sound crash in Windows (very strange : blender, UPBGE, python ?), no music for Bill
def sound_play (sound):
if scene.objects['Commands']['sound']:
if scene.objects['Commands']['sound'] and sys.platform!="win32":
audiodev.play(sound)
###############################################################################