# migrating from fmod ex

**URL:** <https://qa.fmod.com/t/migrating-from-fmod-ex/11315>\
**Category:** FMOD Studio\
**Created:** [February 27, 2014, 11:46am UTC](https://qa.fmod.com/t/migrating-from-fmod-ex/11315 "2014-02-27T11:46:35Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)\
**Post date:** [March 18, 2014, 10:52pm UTC](https://qa.fmod.com/t/migrating-from-fmod-ex/11315/21 "2014-03-18T22:52:40Z")

</div>

Hi,  
FMOD\_ERR\_MAXAUDIBLE is only ever going to be returned from System::playSound, not getParameter. I expect you have a lib and header mixup. Please make sure you have the two in sync.

---

<div class="post-metadata">

**Author:** ![Controller](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Controller](https://qa.fmod.com/u/Controller)\
**Post date:** [March 18, 2014, 11:26pm UTC](https://qa.fmod.com/t/migrating-from-fmod-ex/11315/22 "2014-03-18T23:26:00Z")

</div>

```auto
If (FMOD_System_GetMasterChannelGroup(hSystem, @hMasterChannelGroup) = 0)
{
  If (hMasterChannelGroup)
  {
    If (FMOD_System_CreateDSPByType(hSystem, FMOD_DSP_TYPE_FFT, @hDSP) = 0)
    {
      If (hDSP)
      {
        If (FMOD_DSP_SetParameterInt(hDSP, FMOD_DSP_FFT_WINDOWSIZE, 1024) = 0)
        {
          If (FMOD_DSP_SetParameterInt(hDSP, FMOD_DSP_FFT_WINDOWTYPE, FMOD_DSP_FFT_WINDOW_RECT) = 0)
          {
            If (FMOD_ChannelGroup_AddDSP(hMasterChannelGroup, FMOD_CHANNELCONTROL_DSP_HEAD, hDSP, 0) = 0)
            {
              xResult = True;
            }
          }
        }
        If (!xBool1)
        {
          If (FMOD_DSP_Release(hDSP) = 0)
          {
            hDSP = 0
          }
        }
      }
    }
  }
}
```

Should work for initializing the DSP - unless by changing from purebasic to a c/c++ like syntax I haven’t made any mistake.  
With the new insight that the spectrum data parameter, the player seems to work stable again, but no spectrum shown anyway.  
BTW, is this old spectrum routine fully backwards compatible with older fmod studio low level api versions?  
EDIT: Fixed FMOD\_DSP\_Release() = 0, instead of FMOD\_DSP\_Release(hDSP) in code

---

<div class="post-metadata">

**Author:** ![fryedrycestyle](https://avatars.discourse-cdn.com/v4/letter/f/8c91f0/32.png) [@fryedrycestyle](https://qa.fmod.com/u/fryedrycestyle)\
**Post date:** [March 18, 2014, 11:58pm UTC](https://qa.fmod.com/t/migrating-from-fmod-ex/11315/23 "2014-03-18T23:58:53Z")

</div>

> [@brett](#):
>
> Hi,  
> FMOD\_ERR\_MAXAUDIBLE is only ever going to be returned from System::playSound, not getParameter. I expect you have a lib and header mixup. Please make sure you have the two in sync.

Sorry, I’m a bit confused then. What header files should I be using with the lowlevel api then? I currently just use \<fmod.hpp\>.

Thanks!

---

<div class="post-metadata">

**Author:** ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)\
**Post date:** [March 20, 2014, 10:57pm UTC](https://qa.fmod.com/t/migrating-from-fmod-ex/11315/24 "2014-03-20T22:57:37Z")

</div>

you use fmod.hpp

The issue is that it looks like you have versions of fmod headers mixed up with versions of the lib/dll files.

---

<div class="post-metadata">

**Author:** ![fryedrycestyle](https://avatars.discourse-cdn.com/v4/letter/f/8c91f0/32.png) [@fryedrycestyle](https://qa.fmod.com/u/fryedrycestyle)\
**Post date:** [March 21, 2014, 1:38pm UTC](https://qa.fmod.com/t/migrating-from-fmod-ex/11315/25 "2014-03-21T13:38:14Z")

</div>

Huh. Which libs should I be using then (specifically, for release / debug with visual studio)? I specify the directory as the FMOD Lowlevel API, but atm am not sure which libraries I’m specifying to be used (I’ll post later when I can check!).

[Previous page](https://qa.fmod.com/t/migrating-from-fmod-ex/11315.md?page=1)
