AkPlatformBase.cpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 "Platforms/AkPlatformBase.h"
  16. #include "AkAudioDevice.h"
  17. #include "Interfaces/IPluginManager.h"
  18. #include "Misc/Paths.h"
  19. #include "WwiseUnrealHelper.h"
  20. FString FAkPlatformBase::GetWwisePluginDirectory()
  21. {
  22. return FPaths::ConvertRelativePathToFull(IPluginManager::Get().FindPlugin(TEXT("Wwise"))->GetBaseDir());
  23. }
  24. FString FAkPlatformBase::GetDSPPluginsDirectory(const FString& PlatformArchitecture)
  25. {
  26. #ifdef WWISE_DSP_DIR
  27. static constexpr const auto* DspDir = TEXT(WWISE_DSP_DIR);
  28. #elif UE_BUILD_SHIPPING
  29. static constexpr const auto* DspDir = TEXT("Release");
  30. #elif UE_BUILD_DEBUG
  31. static constexpr const auto* DspDir = TEXT("Debug");
  32. #else
  33. static constexpr const auto* DspDir = TEXT("Profile");
  34. #endif
  35. return WwiseUnrealHelper::GetThirdPartyDirectory() / PlatformArchitecture / DspDir / "bin" / "";
  36. }