Browse Source

Use WAV header and size information instead of throwing it out.

pull/74/head
Joseph Davies 7 years ago
parent
commit
076a7088a2
Signed by untrusted user: Deledrius
GPG Key ID: 28ACC6E8D2B24B8A
  1. 1
      korman/properties/modifiers/sound.py

1
korman/properties/modifiers/sound.py

@ -287,6 +287,7 @@ class PlasmaSound(idprops.IDPropMixin, bpy.types.PropertyGroup):
header = plWAVHeader()
if magic == b"RIFF":
size = korlib.inspect_wavefile(stream, header)
return (header, size)
elif magic == b"OggS":
size = korlib.inspect_vorbisfile(stream, header)
return (header, size)

Loading…
Cancel
Save