# Huge bug for Api: for my channels not working correctly

**URL:** <https://qa.fmod.com/t/huge-bug-for-api-for-my-channels-not-working-correctly/15222>\
**Category:** Unity\
**Created:** [November 17, 2019, 5:07pm UTC](https://qa.fmod.com/t/huge-bug-for-api-for-my-channels-not-working-correctly/15222 "2019-11-17T17:07:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Liam8mail](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@Liam8mail](https://qa.fmod.com/u/Liam8mail)\
**Post date:** [November 17, 2019, 5:07pm UTC](https://qa.fmod.com/t/huge-bug-for-api-for-my-channels-not-working-correctly/15222/1 "2019-11-17T17:07:51Z")

</div>

Hi,  
I came across something unusal here. When I try to get the channel group from my bus, it does not  
work correctly. None of functions of the channel group work. Here is some code i used to get to the channels.  
FMOD.Studio.Bus mybus;  
FMOD.ChannelGroup myChannels;  
mybus = RuntimeManager.GetBus(“bus:/Listener/Sfx Bus”);  
float myvol;  
int numchn;  
mybus.setVolume(1.2f);  
mybus.getVolume(out myvol);  
string myName;  
mybus.setPaused(true);  
mybus.getChannelGroup(out myChannels);  
myChannels.getNumChannels(out numchn);  
myChannels.getName(out myName, 20);  
myChannels.setPaused(true);  
Debug.Log(numchn);

Now the bus functions work but when I return a FMOD.ChannelGroup none of the functions work here  
at this level. The channel group is got from an Fmod. class while the bus is instanciated from FMOD.Studio class. There is no other way to get to the channels. Do does anyone know what is happening here?

---

<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:** [November 22, 2019, 3:12am UTC](https://qa.fmod.com/t/huge-bug-for-api-for-my-channels-not-working-correctly/15222/2 "2019-11-22T03:12:27Z")

</div>

All the FMOD functions will return an FMOD\_RESULT which can provide more information on why something is failing.

---

<div class="post-metadata">

**Author:** ![Liam8mail](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@Liam8mail](https://qa.fmod.com/u/Liam8mail)\
**Post date:** [November 23, 2019, 6:08pm UTC](https://qa.fmod.com/t/huge-bug-for-api-for-my-channels-not-working-correctly/15222/3 "2019-11-23T18:08:31Z")

</div>

Thank you, I have debugged and figured out the issue.
