# Issues upgrading from 4.20 to 4.22

**URL:** <https://qa.fmod.com/t/issues-upgrading-from-4-20-to-4-22/14639>\
**Category:** Unreal Engine\
**Created:** [May 3, 2019, 7:08pm UTC](https://qa.fmod.com/t/issues-upgrading-from-4-20-to-4-22/14639 "2019-05-03T19:08:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karanparikh91](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/karanparikh91/32/274_2.png) [@karanparikh91](https://qa.fmod.com/u/karanparikh91)\
**Post date:** [May 3, 2019, 7:08pm UTC](https://qa.fmod.com/t/issues-upgrading-from-4-20-to-4-22/14639/1 "2019-05-03T19:08:00Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [May 6, 2019, 11:40pm UTC](https://qa.fmod.com/t/issues-upgrading-from-4-20-to-4-22/14639/2 "2019-05-06T23:40:36Z")

</div>

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?

> [@karanparikh91](#):
>
> 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:  
> [UE 4.20 and FMOD - Plugins - Epic Developer Community Forums](https://answers.unrealengine.com/questions/814858/ue-420-and-fmod.html)  
> where is suggests adding `Runtime/Media/Public` in all the `IMedia*` includes

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

---

<div class="post-metadata">

**Author:** ![karanparikh91](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/karanparikh91/32/274_2.png) [@karanparikh91](https://qa.fmod.com/u/karanparikh91)\
**Post date:** [May 7, 2019, 3:57am UTC](https://qa.fmod.com/t/issues-upgrading-from-4-20-to-4-22/14639/3 "2019-05-07T03:57:09Z")

</div>

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
