# MixerStrip does not exist in the namespace

**URL:** https://qa.fmod.com/t/mixerstrip-does-not-exist-in-the-namespace/11765
**Category:** Unity
**Created:** [December 14, 2014, 12:19pm UTC](https://qa.fmod.com/t/mixerstrip-does-not-exist-in-the-namespace/11765 "2014-12-14T12:19:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jorren](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@Jorren](https://qa.fmod.com/u/Jorren)
#### Post date: [December 14, 2014, 12:19pm UTC](https://qa.fmod.com/t/mixerstrip-does-not-exist-in-the-namespace/11765/1 "2014-12-14T12:19:25Z")

</div>

I’m having trouble accessing mixerstrips in Unity. I downloaded the latest Fmod Studio and Unity package from this site.

I have a separate strip for SFX and music and want the user to control their volume independently.

I have found some code here to do this, but I keep getting the following error:

Assets/\_Scripts/menu/MenuUIManager.cs(27,29): error CS0234: The type or namespace name `MixerStrip' does not exist in the namespace`FMOD.Studio’. Are you missing an assembly reference?

the line refered to is

FMOD.Studio.MixerStrip sfxBus;

the code I use is based on:

```
   public float volume = 1.0f;
   FMOD.Studio.MixerStrip sfxBus;

   void Start()
   {
      FMOD.GUID guid;
      FMOD.Studio.System system = FMOD_StudioSystem.instance.System;
      system.lookupID("bus:/SFX", out guid);
      system.getMixerStrip(guid, FMOD.Studio.LOADING_MODE.BEGIN_NOW, out sfxBus);
   }

   void Update()
   {
      sfxBus.setFaderLevel(volume);
   }

```

Any ideas. What am I missing?

Thanks,  
Jeroen

---

<div class="post-metadata">

### Author: ![geoff](https://avatars.discourse-cdn.com/v4/letter/g/a3d4f5/32.png) [@geoff](https://qa.fmod.com/u/geoff)
#### Post date: [December 14, 2014, 11:04pm UTC](https://qa.fmod.com/t/mixerstrip-does-not-exist-in-the-namespace/11765/2 "2014-12-14T23:04:23Z")

</div>

That API was changed in 1.5. There are some notes about it in the  
[documentation](http://52.88.2.202/documentation/#content/generated/common/whatsnew_105.html).

The new function is called getBus and takes a string which can either be a name or a guid representation. So your new code should look like this:

```
void Start()
{
   FMOD.Studio.System system = FMOD_StudioSystem.instance.System;
   system.getBus("bus:/SFX", out sfxBus);
}

```

---

<div class="post-metadata">

### Author: ![Jorren](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@Jorren](https://qa.fmod.com/u/Jorren)
#### Post date: [December 15, 2014, 7:42am UTC](https://qa.fmod.com/t/mixerstrip-does-not-exist-in-the-namespace/11765/3 "2014-12-15T07:42:59Z")

</div>

Thanks Geoff!

Should have read the docs more carefully.
