Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

0 votes

Please resolve the following build warnings in the AkAudio UE4 plugin source. Note that this also may be contributing to bloated bins. I've included our workaround, below.

- thanks

Warning:
You have included windows.h or wrl.h before XboxOneMinApi.h ParallelExecutor.Execute:   All useless stuff from the windows headers won't be excluded !!!
 

Engine\Plugins\Wwise\ThirdParty\include\AK\Tools\Win32\AkLock.h

#ifndef _AKLOCK_H_
#define _AKLOCK_H_

#include <AK/SoundEngine/Common/AkTypes.h>
#pragma region PROBABLY_MONSTERS_CUSTOM
//#include <windows.h>
#if defined(AK_WIN)
//For CRITICAL_SECTION
//#include "Windows/MinimalWindowsApi.h"
#include "Windows/WindowsCriticalSection.h"
#elif defined(AK_XBOXONE)
//For CRITICAL_SECTION
//#include "XboxOne/XboxOneMinApi.h"
#include "XboxOne/XboxOneCriticalSection.h"
#endif
// TODO: Other platforms?
#pragma endregion PROBABLY_MONSTERS_CUSTOM


Engine\Plugins\Wwise\ThirdParty\include\AK\Tools\Win32\AkPlatformFuncs.h

#ifndef _AK_PLATFORM_FUNCS_H_
#define _AK_PLATFORM_FUNCS_H_

#include "malloc.h"
#include <AK/Tools/Common/AkAssert.h>
#include <AK/SoundEngine/Common/AkTypes.h>
#pragma region PROBABLY_MONSTERS_CUSTOM
//#include <windows.h>
#if defined(AK_WIN)
#include "Windows/MinimalWindowsApi.h"
//#include "Windows/WindowsCriticalSection.h"
#elif defined(AK_XBOXONE)
#include "XboxOne/XboxOneMinApi.h"
//#include "XboxOne/XboxOneCriticalSection.h"
#endif
// TODO: Other platforms?
#pragma endregion PROBABLY_MONSTERS_CUSTOM
//#define AK_ENABLE_PERF_RECORDING
#if defined(AK_ENABLE_PERF_RECORDING)
#include <stdio.h>
#endif

Engine\Plugins\Wwise\Source\AudiokineticTools\Private\AkAudioBankGenerationHelpers.cpp

#include "AudiokineticToolsPrivatePCH.h"
#include "AkAudioBankGenerationHelpers.h"
#include "AkAudioClasses.h"
#include "SGenerateSoundBanks.h"
#pragma region PROBABLY_MONSTERS_CUSTOM
/*
#include "MainFrame.h"
*/
#pragma endregion PROBABLY_MONSTERS_CUSTOM
#include "Runtime/Core/Public/Misc/FileHelper.h"
#include "Runtime/Core/Public/HAL/PlatformFilemanager.h"

#include "AkSettings.h"
#include "AssetRegistryModule.h"
#include "Interfaces/IMainFrameModule.h"
#include "Interfaces/ITargetPlatformManagerModule.h"
#include "Interfaces/ITargetPlatform.h"

 

in Feature Requests by Paul B. (160 points)

Please sign-in or register to answer this question.

...