Issues upgrading from 4.20 to 4.22

#1

Hi,

I am attempting to update my UE4 project from 4.20 to 4.22 (SDK 6).
However, I am running into 2 FMOD related errors.

The first error is: Error C2065 ‘FMOD_OUTPUTTYPE_DSOUND’: undeclared identifier
The line that causes the error is as follows: /
/New stuff line below added to resolve issue with WASAPI audio input
result = system->setOutput(FMOD_OUTPUTTYPE_DSOUND);

I remember adding that line to solve another bug that came up during a version change

The second is in the FMODStudioModule.cpp file where it says:
Error C1083 Cannot open include file: ‘IMediaClock.h’: No such file or directory

Upon further research, I came across one potential solution here:
https://answers.unrealengine.com/questions/814858/ue-420-and-fmod.html
where is suggests adding Runtime/Media/Public in all the IMedia* includes

so instead of #include ImediaClock.h I put Runtime/Media/Public/IMediaCLock.h and do the same for some other includes like IMediaClockSink.h and IMediaModule.h

That gets rid of the IMedia errors. However, that throws a whole new error

Error LNK1181 cannot open input file ‘C:\Users\XYZ\Documents\Unreal Projects\BGA4.22\Plugins\FMODStudio\Source\FMODStudio…\Binaries\Win64\fmodL64_vc.lib’ 1

#2

What version of FMOD are you using?
When you upgraded from UE4.20 to UE4.22 did you remove the old FMOD integration and add the one made specifically for UE4.22?

Thanks for bringing this to our attention, I have added this fix for the upcoming release.

#3

Hi Cameron,

So after modifying the lines for the includes, I was able to build the project after I hit rebuild in VS2017.

I did have to comment out the line:
result = system->setOutput(FMOD_OUTPUTTYPE_DSOUND);
from my code

The error it was producing was: Error C2065 ‘FMOD_OUTPUTTYPE_DSOUND’: undeclared identifier
The line that causes the error is as follows: /
/New stuff line below added to resolve issue with WASAPI audio input

Thanks,

Karan