public ExtendedTypeInformation GetExtendedTypeInformation(uint typeId) { ExtendedTypeInformation result = new ExtendedTypeInformation { TypeId = typeId }; switch (typeId) { case 0x166B084Du: result.HasCustomData = true; result.TypeHash = 0x46410F77u; result.TypeName = nameof(AudioFile); switch (_platform) { case TargetPlatform.Win32: result.ProcessingHash = _effectiveAudioPluginVersion ^ 0x83398E45u; break; case TargetPlatform.Xbox360: result.ProcessingHash = _effectiveAudioPluginVersion360 ^ 0x83398E45u; break; default: throw new BinaryAssetBuilderException(ErrorCode.InternalError, "Unknown platform {0}", _platform); } break; } return(result); }
public ExtendedTypeInformation GetExtendedTypeInformation(uint typeId) { ExtendedTypeInformation result = new ExtendedTypeInformation { TypeId = typeId }; switch (typeId) { case 0x166B084Du: result.HasCustomData = true; result.TypeHash = 0x53C81E47u; result.TypeName = nameof(AudioFile); switch (_platform) { case TargetPlatform.Win32: result.ProcessingHash = 0x8FE79286u; break; case TargetPlatform.Xbox360: result.ProcessingHash = 0x8FE78B86u; break; case TargetPlatform.PlayStation3: result.ProcessingHash = 0x8FE79286u; break; default: throw new BinaryAssetBuilderException(ErrorCode.InternalError, "Unknown platform {0}", _platform); } break; } return(result); }
public ExtendedTypeInformation GetExtendedTypeInformation(uint typeId) { ExtendedTypeInformation result = new ExtendedTypeInformation { HasCustomData = true, TypeId = typeId }; AssetType assetType = (AssetType)typeId; switch (assetType) { case AssetType.AudioFileMP3Passthrough: result.ProcessingHash = _platform != TargetPlatform.Xbox360 ? _effictiveAudioPluginVersion ^ 0x3520BB9Cu : _effectiveAudioPluginVersion360 ^ 0x3520BB9Cu; result.TypeHash = 0x610DB321u; result.TypeName = nameof(AssetType.AudioFileMP3Passthrough); break; case AssetType.AudioFile: result.ProcessingHash = _platform != TargetPlatform.Xbox360 ? _effictiveAudioPluginVersion ^ 0x83398E45u : _effectiveAudioPluginVersion360 ^ 0x83398E45u; result.TypeHash = 0x46410F77u; result.TypeName = nameof(AssetType.AudioFile); break; } return(result); }