cancel
Showing results for 
Search instead for 
Did you mean: 

OSP + Unity + Wwise Integration

shan1392
Level 3
I've been trying to get the Oculus Spatializer Plug-in to work with the Unity-Wwise Integration for over 16 hours now and for the life of me I can't seem to figure it out. 
I'm using Unity 5.3.5f1 and Wwise v2015.1.8. (Not using Wwise 2016 since source code is not available yet).
Unity-Wwise integration is working perfectly fine. I'm having trouble registering the OSP Plugin in Unity.
I have followed the instructions at: https://goo.gl/tzBIUW ,  https://goo.gl/rS9zcP  and  https://goo.gl/EasgeV 

Here's what I have so far:
I was able to build the integration code without any errors in Visual Studio 2013.
Opened AkSoundEngineStubs.cpp, added #include<'OculusSpatializer.h'> first.
Found the RegisterAllBuiltInPlugins() and added the content from OculusSpatializer.h like this:
// Register built-in plug-ins.
AK::SoundEngine::RegisterAllBuiltInPlugins();
// AK::SoundEngine::RegisterCrankcaseAudioPlugins();
// OCULUS_START
HMODULE OculusSpatializerLibrary = LoadLibrary(L"OculusSpatializer.dll");
...

Upon recompiling, I get an error saying "Unable to start program <filepath>\AkSoundEngine.dll" but in the log it says Build Succeeded, 0 Failed, 0 Skipped.  

After recompiling I manually replaced the UNITY_PROJECT_ROOT\Assets\Wwise\Deployment folder with the <WwiseUnityIntegration_SourceCode_ROOT>\Deployment folder. 

Now it says I'm supposed to deploy the lib to Unity Assets\Plugins but I'm not sure what folder needs to be copied in that directory. I took the Plugins folder from <SourceCode_Root>\Deployment and put it under Unity Assets\Plugins but that way when I run Unity, it detects multiple instances of AkSoundEngine.dll (one at Unity Assets\Plugins and the other at Unity Assets\Wwise\Deployment) and it gives an error. 

Either way, no matter what I do, I still get the "Plugin not registered" error in Unity and I would really appreciate if anyone could help out. 


Also note, I don't seem to understand steps 4 and 5 in the Adding Licensed Plugins to Unity section and I'm not sure what to do about them.
  1. Add calls to AK::SoundEngine::RegisterPlugin() or one of the predefined helper functions (see soundengine_integration_plugins)
  2. Add the corresponding lib file into the linker input options. The libraries are part of the Wwise SDK installation, separate from the Unity package. Usually this is found in C:\Program Files(x86)\Audiokinetic\Wwise [version]\SDK\[platform]\lib folder. This path is already setup in the project/makefile.
0 REPLIES 0