Browse Source

Fix issue with static sounds not playing in PotS.

pull/211/head
Adam Johnson 4 years ago
parent
commit
56c2fdd054
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 10
      korman/properties/modifiers/sound.py

10
korman/properties/modifiers/sound.py

@ -189,9 +189,13 @@ class PlasmaSound(idprops.IDPropMixin, bpy.types.PropertyGroup):
exporter.output.add_sfx(self._sound) exporter.output.add_sfx(self._sound)
# There is some bug in the MOUL code that causes a crash if this does not match the expected # There is some bug in the MOUL code that causes a crash if this does not match the expected
# result. There's no sense in debugging that though--the user should never specify # result. Worse, PotS seems to not like static sounds that are brand-new to it. Possibly because
# streaming vs static. That's an implementation detail. # it needs to be decompressed outside of game. There's no sense in debugging any of that
pClass = plWin32StreamingSound if length > 4.0 else plWin32StaticSound # though--the user should never specify streaming vs static. That's an implementation detail.
if exporter.mgr.getVer() != pvMoul and self._sound.plasma_sound.package:
pClass = plWin32StreamingSound
else:
pClass = plWin32StreamingSound if length > 4.0 else plWin32StaticSound
# OK. Any Plasma engine that uses OpenAL (MOUL) is subject to this restriction. # OK. Any Plasma engine that uses OpenAL (MOUL) is subject to this restriction.
# 3D Positional audio MUST... and I mean MUST... have mono emitters. # 3D Positional audio MUST... and I mean MUST... have mono emitters.

Loading…
Cancel
Save