the version in the mod sound meta data is different you need to add this:
// Skip all the way to the event section
// Skip version
int version = binaryReader.ReadInt32();
const int wwiseMetaDataVersionRetail = 23;
bool retailMetaData = version == wwiseMetaDataVersionRetail;
and
for (int i = 0; i < eventCount; i++)
{
binaryReader.ReadUInt32();
uint eventNameLength = binaryReader.ReadUInt32();
byte[] nameBytes = new byte[eventNameLength];
binaryReader.Read(nameBytes, 0, (int)eventNameLength);
string eventName = Encoding.UTF8.GetString(nameBytes);
binaryReader.ReadSingle();
binaryReader.ReadUInt16();
if ( retailMetaData == false )
{
binaryReader.ReadChar();
}
binaryReader.ReadUInt32();
binaryReader.ReadUInt32();
uint affectedSoundCount = binaryReader.ReadUInt32();
the version in the mod sound meta data is different you need to add this:
and