Forum Discussion
Anonymous
8 years agoOSP Integration in Wwise in Unreal code syntax issues - AkAudioDevice.cpp code
Hello Oculus team,
I am having troubles implementing the OSP into my Wwise/Unreal project. I am using UE4.18.3 and Wwise 2017.9.6501.
I made my level in UE, and integrated Wwise into the project. I then copied the "OculusSpatializerWwise.dll" & OculusSpatializerWwise.XML" into Unreals Engine install location UE_4.18>Engine>Binaries>Win64. I also copied those same files to the Wwise install location: Wwise 2017.1.9.6501>Authoring>x64>Release>bin>Plugins. I then opened the OculusSpatializer.h and copied everything from the comment //OCULUS_START all the way to //OCULUS END, and pasted it in the AkAudioDevice.cpp code right underneath these two lines:
// OCULUS_START
The line 106 and 107 errors are simply just:
I am having troubles implementing the OSP into my Wwise/Unreal project. I am using UE4.18.3 and Wwise 2017.9.6501.
I made my level in UE, and integrated Wwise into the project. I then copied the "OculusSpatializerWwise.dll" & OculusSpatializerWwise.XML" into Unreals Engine install location UE_4.18>Engine>Binaries>Win64. I also copied those same files to the Wwise install location: Wwise 2017.1.9.6501>Authoring>x64>Release>bin>Plugins. I then opened the OculusSpatializer.h and copied everything from the comment //OCULUS_START all the way to //OCULUS END, and pasted it in the AkAudioDevice.cpp code right underneath these two lines:
// OCULUS_START
#include "Runtime/HeadMountedDisplay/Public/IHeadMountedDisplayModule.h"
When I build, I get odd syntax errors...the code looks correct. It must be a compiler error? Below is what I got when cooking & then Baking.
When I build, I get odd syntax errors...the code looks correct. It must be a compiler error? Below is what I got when cooking & then Baking.
Errors when baking:
ProcessResult.StdErr: Performing 3 actions (4 in parallel)
ProcessResult.StdOut: Module.AkAudio.cpp
ProcessResult.StdOut: E:\tl0r\Documents\Unreal Projects\2018\THDungeoneerVR\THDungeoneerVR\Plugins\Wwise\Source\AkAudio\Private\AkAudioDevice.cpp(106): error C2059: syntax error: 'if'
ProcessResult.StdOut: E:\tl0r\Documents\Unreal Projects\2018\THDungeoneerVR\THDungeoneerVR\Plugins\Wwise\Source\AkAudio\Private\AkAudioDevice.cpp(107): error C2143: syntax error: missing ';' before '{'
ProcessResult.StdOut: E:\tl0r\Documents\Unreal Projects\2018\THDungeoneerVR\THDungeoneerVR\Plugins\Wwise\Source\AkAudio\Private\AkAudioDevice.cpp(107): error C2447: '{': missing function header (old-style formal list?)
ProcessResult.StdOut: E:\tl0r\Documents\Unreal Projects\2018\THDungeoneerVR\THDungeoneerVR\Plugins\Wwise\Source\AkAudio\Private\AkAudioDevice.cpp(153): error C2059: syntax error: 'else'
ProcessResult.StdOut: E:\tl0r\Documents\Unreal Projects\2018\THDungeoneerVR\THDungeoneerVR\Plugins\Wwise\Source\AkAudio\Private\AkAudioDevice.cpp(154): error C2143: syntax error: missing ';' before '{'
ProcessResult.StdOut: E:\tl0r\Documents\Unreal Projects\2018\THDungeoneerVR\THDungeoneerVR\Plugins\Wwise\Source\AkAudio\Private\AkAudioDevice.cpp(154): error C2447: '{': missing function header (old-style formal list?)
ProcessResult.StdErr: ERROR: UBT ERROR: Failed to produce item: E:\tl0r\Documents\Unreal Projects\2018\THDungeoneerVR\THDungeoneerVR\Plugins\Wwise\Binaries\Win64\UE4-AkAudio.lib
ProcessResult.StdErr: Total build time: 29.73 seconds (Local executor: 0.00 seconds)
The line 106 and 107 errors are simply just:
if (OculusSpatializerLibrary)
{
and the 153 154 errors are:
else
{
Don't I need this code for the plugin to be registered into Wwise upon build?
Thanks,
Tyler Hoffman
and the 153 154 errors are:
else
{
Don't I need this code for the plugin to be registered into Wwise upon build?
Thanks,
Tyler Hoffman
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device