AkUEPlatform.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 "AkInclude.h"
  17. #if PLATFORM_ANDROID
  18. #include "AkPlatform_Android/AkAndroidPlatform.h"
  19. #elif PLATFORM_TVOS
  20. #include "AkPlatform_tvOS/AkTVOSPlatform.h"
  21. #elif PLATFORM_IOS && !PLATFORM_TVOS
  22. #include "AkPlatform_iOS/AkIOSPlatform.h"
  23. #elif PLATFORM_LINUX
  24. #include "AkPlatform_Linux/AkLinuxPlatform.h"
  25. #elif PLATFORM_MAC
  26. #include "AkPlatform_Mac/AkMacPlatform.h"
  27. #elif defined(PLATFORM_PS4) && PLATFORM_PS4
  28. #include "AkPlatform_PS4/AkPS4Platform.h"
  29. #elif defined(AK_PS5)
  30. #include "AkPlatform_PS5/AkPS5Platform.h"
  31. #elif defined(PLATFORM_STADIA) && PLATFORM_STADIA
  32. #include "AkPlatform_Stadia/AkStadiaPlatform.h"
  33. #elif defined(PLATFORM_SWITCH) && PLATFORM_SWITCH
  34. #include "AkPlatform_Switch/AkSwitchPlatform.h"
  35. #elif defined(PLATFORM_HOLOLENS) && PLATFORM_HOLOLENS
  36. #include "AkPlatform_Hololens/AkHololensPlatform.h"
  37. #elif defined(AK_WINDOWSGC)
  38. #include "AkPlatform_WinGC/AkWinGCPlatform.h"
  39. #elif PLATFORM_WINDOWS
  40. #include "AkPlatform_Windows/AkWindowsPlatform.h"
  41. #elif (defined(PLATFORM_XBOXONE) && PLATFORM_XBOXONE) && !((defined(PLATFORM_XBOXONEGDK) && PLATFORM_XBOXONEGDK) || (defined(PLATFORM_XB1) && PLATFORM_XB1))
  42. #include "AkPlatform_XboxOne/AkXboxOnePlatform.h"
  43. #elif ((defined(PLATFORM_XBOXONEGDK) && PLATFORM_XBOXONEGDK) || (defined(PLATFORM_XB1) && PLATFORM_XB1))
  44. #include "AkPlatform_XboxOneGC/AkXboxOneGDKPlatform.h"
  45. #elif defined(PLATFORM_XSX) && PLATFORM_XSX
  46. #include "AkPlatform_XboxSeriesX/AkXboxSeriesXPlatform.h"
  47. #else
  48. #error "The Wwise plug-in does not support the current build platform."
  49. #endif
  50. namespace AkUnrealPlatformHelper
  51. {
  52. AKAUDIO_API TSet<FString> GetAllSupportedUnrealPlatforms();
  53. AKAUDIO_API TSet<FString> GetAllSupportedUnrealPlatformsForProject();
  54. AKAUDIO_API TArray<TSharedPtr<FString> > GetAllSupportedWwisePlatforms(bool ProjectScope = false);
  55. AKAUDIO_API bool IsEditorPlatform(FString Platform);
  56. }