1
0
mirror of https://github.com/Escartem/AnimeWwise.git synced 2026-06-05 07:50:23 +08:00

fix bugs and update extract tab

This commit is contained in:
Escartem
2024-11-04 10:15:54 +01:00
parent da8ee97264
commit 6c483b4bc2
3 changed files with 40 additions and 39 deletions

View File

@@ -60,6 +60,7 @@ def parse_wwise(reader):
"channelLayout": None,
"channelType": None,
"codec": None,
"codecDisplay": None,
"layoutType": None,
"interleaveBlockSize": None,
"numSamples": None,
@@ -109,10 +110,21 @@ def parse_wwise(reader):
codec = codecs[metadata["format"]]
if codec not in ["PTADPCM", "VORBIS"]: # Platinum "PtADPCM" custom ADPCM for Wwise
raise Exception(f"unhandled codec -> {codec}")
print(f"unhandled codec -> {codec}")
metadata["codec"] = codec
# codec name
codecs_names = {
"PTADPCM": "Platinum 4-bit ADPCM",
"VORBIS": "Custom Vorbis"
}
if codec in codecs_names:
metadata["codecDisplay"] = codecs_names[codec]
else:
metadata["codecDisplay"] = codec
# parse more infos
if metadata["codec"] == "PTADPCM":
metadata["layoutType"] = "interleave"
@@ -124,4 +136,3 @@ def parse_wwise(reader):
return metadata
# TODO: parse VORBIS
# TODO: rewrite codec ?