# Accessing VCA from code

**URL:** <https://qa.fmod.com/t/accessing-vca-from-code/11228>\
**Category:** FMOD Studio\
**Created:** [November 19, 2013, 11:53am UTC](https://qa.fmod.com/t/accessing-vca-from-code/11228 "2013-11-19T11:53:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![salvofid](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@salvofid](https://qa.fmod.com/u/salvofid)\
**Post date:** [November 19, 2013, 11:53am UTC](https://qa.fmod.com/t/accessing-vca-from-code/11228/1 "2013-11-19T11:53:38Z")

</div>

Hi all,  
does anybody know how to access VCAs from code?  
Thanks, Salvo

---

<div class="post-metadata">

**Author:** ![graeme](https://avatars.discourse-cdn.com/v4/letter/g/50afbb/32.png) [@graeme](https://qa.fmod.com/u/graeme)\
**Post date:** [December 11, 2013, 5:00am UTC](https://qa.fmod.com/t/accessing-vca-from-code/11228/2 "2013-12-11T05:00:00Z")

</div>

Absolutely! That feature is already on our roadmap.

---

<div class="post-metadata">

**Author:** ![graeme](https://avatars.discourse-cdn.com/v4/letter/g/50afbb/32.png) [@graeme](https://qa.fmod.com/u/graeme)\
**Post date:** [December 6, 2013, 2:32am UTC](https://qa.fmod.com/t/accessing-vca-from-code/11228/3 "2013-12-06T02:32:37Z")

</div>

Hi Salvo,

If you know the VCA’s GUID, you can call Studio::System::getMixerStrip() to retrieve a runtime handle to it. Then simply use the Studio::MixerStrip API.

The tricky part is obtaining the GUID from the Studio tool. Currently there is no way to do this via the UI. What you must do is examine the project files on disk. Say you have a project called “GameProject”, and create a VCA called “MyVCA”. The main project folder will be called “GameProject”, containing the root project file, “GameProject.fspro”. You should see a sub-folder there called “Mixing Desk”.

[attachment=1]GameProject.jpg[/attachment]

Inside the “Mixing Desk” sub-folder, you should see a file that looks like “MyVCA {226eabc3-0568-40b0-b695-9bfdf9386df0}.vca”.

[attachment=0]Mixing Desk.jpg[/attachment]

That’s the GUID in curly braces. So in this example, the VCA’s GUID is “{226eabc3-0568-40b0-b695-9bfdf9386df0}”. At runtime you can use the helper function Studio::parseID() to convert this string to an FMOD\_GUID type, suitable for passing to Studio::System::getMixerStrip().

```auto
Studio::System system;

...

FMOD_GUID id;
Studio::parseID("{226eabc3-0568-40b0-b695-9bfdf9386df0}", &id);

Studio::MixerStrip myvca;
system.getMixerStrip(&id, FMOD_STUDIO_LOAD_BEGIN_NOW, &myvca);

myvca.setFaderLevel(0.5f);
```

Cheers,  
Graeme.

---

<div class="post-metadata">

**Author:** ![salvofid](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@salvofid](https://qa.fmod.com/u/salvofid)\
**Post date:** [December 6, 2013, 9:45am UTC](https://qa.fmod.com/t/accessing-vca-from-code/11228/4 "2013-12-06T09:45:30Z")

</div>

Hi Graeme,  
Could the GUID and the name be obtained like a normal mixer group from the UI in a future release?  
Thanks again, Salvo
