Please be advised that the Audiokinetic offices will close at 3:00 p.m. EST on December 23rd, 2019 for the holiday period, and will reopen on January 3rd, 2020 at 9:00 a.m. EST. Learn more.

Community Q&A

Where Wwise users help each other out!

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

AKAudio UE4 plugin DCR: Please resolve UE4 build warnings

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"

 

asked Jun 26, 2018 in Feature Requests by Paul B. (180 points)

Please sign-in or register to answer this question.

...