WwiseMetadataMedia.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. #pragma once
  16. #include "Wwise/Metadata/WwiseMetadataLoadable.h"
  17. struct WWISEPROJECTDATABASE_API FWwiseMetadataMediaReference : public FWwiseMetadataLoadable
  18. {
  19. uint32 Id;
  20. FWwiseMetadataMediaReference(FWwiseMetadataLoader& Loader);
  21. };
  22. inline uint32 GetTypeHash(const FWwiseMetadataMediaReference& Media)
  23. {
  24. return GetTypeHash(Media.Id);
  25. }
  26. inline bool operator ==(const FWwiseMetadataMediaReference& Lhs, const FWwiseMetadataMediaReference& Rhs)
  27. {
  28. return Lhs.Id == Rhs.Id;
  29. }
  30. inline bool operator <(const FWwiseMetadataMediaReference& Lhs, const FWwiseMetadataMediaReference& Rhs)
  31. {
  32. return Lhs.Id < Rhs.Id;
  33. }
  34. enum class EWwiseMetadataMediaLocation : uint32
  35. {
  36. Memory,
  37. Loose,
  38. OtherBank,
  39. Unknown = (uint32)-1
  40. };
  41. struct WWISEPROJECTDATABASE_API FWwiseMetadataMediaAttributes : public FWwiseMetadataMediaReference
  42. {
  43. FName Language;
  44. bool bStreaming;
  45. EWwiseMetadataMediaLocation Location;
  46. bool bUsingReferenceLanguage;
  47. uint32 Align;
  48. bool bDeviceMemory;
  49. FWwiseMetadataMediaAttributes(FWwiseMetadataLoader& Loader);
  50. private:
  51. static EWwiseMetadataMediaLocation LocationFromString(const FName& LocationString);
  52. };
  53. struct WWISEPROJECTDATABASE_API FWwiseMetadataMedia : public FWwiseMetadataMediaAttributes
  54. {
  55. FName ShortName;
  56. FName Path;
  57. FName CachePath;
  58. uint32 PrefetchSize;
  59. FWwiseMetadataMedia(FWwiseMetadataLoader& Loader);
  60. };