WwiseLoadedGroupValue.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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/CookedData/WwiseGroupValueCookedData.h"
  17. #include "CoreMinimal.h"
  18. #include "Wwise/WwiseFuture.h"
  19. struct WWISERESOURCELOADER_API FWwiseLoadedGroupValueInfo
  20. {
  21. FWwiseLoadedGroupValueInfo(const FWwiseGroupValueCookedData& InGroupValue);
  22. FWwiseLoadedGroupValueInfo& operator=(const FWwiseLoadedGroupValueInfo&) = delete;
  23. const FWwiseGroupValueCookedData GroupValueCookedData;
  24. struct WWISERESOURCELOADER_API FLoadedData
  25. {
  26. FLoadedData() {}
  27. FLoadedData(const FLoadedData&) = delete;
  28. FLoadedData& operator=(const FLoadedData&) = delete;
  29. bool bLoaded = false;
  30. int IsProcessing{0};
  31. bool IsLoaded() const;
  32. } LoadedData;
  33. FString GetDebugString() const;
  34. private:
  35. friend class TDoubleLinkedList<FWwiseLoadedGroupValueInfo>::TDoubleLinkedListNode;
  36. FWwiseLoadedGroupValueInfo(const FWwiseLoadedGroupValueInfo& InOriginal);
  37. };
  38. using FWwiseLoadedGroupValueList = TDoubleLinkedList<FWwiseLoadedGroupValueInfo>;
  39. using FWwiseLoadedGroupValueListNode = FWwiseLoadedGroupValueList::TDoubleLinkedListNode;
  40. using FWwiseLoadedGroupValuePtr = FWwiseLoadedGroupValueListNode*;
  41. using FWwiseLoadedGroupValuePtrAtomic = std::atomic<FWwiseLoadedGroupValuePtr>;
  42. using FWwiseLoadedGroupValuePromise = TWwisePromise<FWwiseLoadedGroupValuePtr>;
  43. using FWwiseLoadedGroupValueFuture = TWwiseFuture<FWwiseLoadedGroupValuePtr>;