As the title suggests and idiots guide written by me, A fully certified idiot.
download the audio sdk from https://developer.oculus.com/downloads/#sdk=audio
download the UE4 FMOD Plugin version 1.05.13 http://www.fmod.org/download/fmodstudio/integrations/UE4/Plugin/Win/fmodstudio10513ue4.7windows.zip
Edit* or this custom one https://drive.google.com/file/d/0BzgVPR4xFGgjYl9DSDJETmlITTA/view?usp=sharing
Which has additional settings and blueprints for the Oculus audio SDK.
Download FmodStudio version 1.05.12 (important as banks created with 1.05.13 were crashing my system for some reason) http://www.fmod.org/download/fmodstudio/tool/Win/fmodstudio10512win-installer.exe
Extract the UE4 FMOD plugin to your UE4 installation folder so that the Engine folders merge. For me that was e:\unreal\4.7\
Extract the oculus 64bit plugin ovrfmod64.dll to Engine/Binaries/ThirdParty/FMODStudio/Win64/
Create a new UE4 project and within the content folder create a folder called FMOD
Within UE4 goto Edit->Project Settings->Plugins->FmodStudio. Under Basic change output format to Stereo. And under Advanced click the plus sign next to Plugin File and enter ovrfmod within the text field. (its important to enter exactly that without the “64.dll” as fmod will crash the editor when you PIE if it cannot find the file. The Fmod plugin adds “64.dll” internally).
Now fire up FmodStudio. Go to Edit->preferences and under the format tab change output to Stereo. And under the Build tab change the directory to point to your Content/FMOD directory.
Select File->save as… and give your Fmod project a name i.e “fmodtest”(making a note of where the project is located).
Close FmodStudio and navigate to where your Fmod project was saved within that directoy(which contains your fmodtest.fspro file) create a folder called Plugins and within the plugins folder extract ovrfmod32.dll from the audio sdk zip file.
Fire up FmodStudio again and re-open your saved fmod project. and create a new event by right clicking on the events tab.
- Give the new event a name and then select the new event. Select the master track and delete the 3d-panner by right clicking on it.
- Add the Oculus Spatializer by right clicking on the same area.
- Right click on the VU meter to the left and change the input to Mono.
- right click on the Plus tab next to the timeline and add a default distance parameter.
- Right click on the master volume knob and add automation.
- Create a attenuation graph by left clicking once on the left and again on the right.
- Select File->Import Audio File… to import the sound you wish to use. After the file has been loaded into the audio bin drag the file onto your audio track.
In this case ‘Audio 1’.
- Right click on the event in the events tab and assign to the master bank.
- Save your fmod project and finally build with File->Build.
If all has gone well there should be a new folder within your UE4 content folder. content/FMOD/Desktop/ which contains your banks.
Fire up your UE4 project and within the content browser under FMOD/Events you should see your FMOD audio event.
Drag the event into your scene and test it out with VR-preview.
- Look forward to the day when this is integrated directly into UE4.