WwiseDatabaseIdentifiers.cpp 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*******************************************************************************
  2. The content of this file includes portions of the proprietary AUDIOKINETIC Wwise
  3. Technology released in source code form as part of the game integration package.
  4. The content of this file may not be used without valid licenses to the
  5. AUDIOKINETIC Wwise Technology.
  6. Note that the use of the game engine is subject to the Unreal(R) Engine End User
  7. License Agreement at https://www.unrealengine.com/en-US/eula/unreal
  8. License Usage
  9. Licensees holding valid licenses to the AUDIOKINETIC Wwise Technology may use
  10. this file in accordance with the end user license agreement provided with the
  11. software or, alternatively, in accordance with the terms contained
  12. in a written agreement between you and Audiokinetic Inc.
  13. Copyright (c) 2023 Audiokinetic Inc.
  14. *******************************************************************************/
  15. #include "Wwise/WwiseDatabaseIdentifiers.h"
  16. uint32 GetTypeHash(const FWwiseDatabaseMediaIdKey& MediaId)
  17. {
  18. return HashCombine(
  19. GetTypeHash(MediaId.MediaId),
  20. GetTypeHash(MediaId.SoundBankId));
  21. }
  22. uint32 GetTypeHash(const FWwiseDatabaseLocalizableIdKey& LocalizableId)
  23. {
  24. return HashCombine(HashCombine(
  25. GetTypeHash(LocalizableId.Id),
  26. GetTypeHash(LocalizableId.SoundBankId)),
  27. GetTypeHash(LocalizableId.LanguageId));
  28. }
  29. uint32 GetTypeHash(const FWwiseDatabaseGroupValueKey& GroupId)
  30. {
  31. return HashCombine(
  32. GetTypeHash(GroupId.GroupId),
  33. GetTypeHash(GroupId.Id));
  34. }
  35. uint32 GetTypeHash(const FWwiseDatabaseLocalizableGroupValueKey& LocalizableGroupValue)
  36. {
  37. return HashCombine(
  38. GetTypeHash(LocalizableGroupValue.GroupValue),
  39. GetTypeHash(LocalizableGroupValue.LanguageId));
  40. }
  41. uint32 GetTypeHash(const FWwiseDatabaseLocalizableGuidKey& LocalizableGuid)
  42. {
  43. return HashCombine(
  44. GetTypeHash(LocalizableGuid.Guid),
  45. GetTypeHash(LocalizableGuid.LanguageId));
  46. }
  47. uint32 GetTypeHash(const FWwiseDatabaseLocalizableNameKey& LocalizableName)
  48. {
  49. return HashCombine(
  50. GetTypeHash(LocalizableName.Name),
  51. GetTypeHash(LocalizableName.LanguageId));
  52. }