# ChannelGroup::setVolume stop other playing sound, bug!

**URL:** <https://qa.fmod.com/t/channelgroup-setvolume-stop-other-playing-sound-bug/15745>\
**Category:** FMOD Engine\
**Created:** [May 8, 2020, 10:01am UTC](https://qa.fmod.com/t/channelgroup-setvolume-stop-other-playing-sound-bug/15745 "2020-05-08T10:01:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![le12380](https://avatars.discourse-cdn.com/v4/letter/l/aca169/32.png) [@le12380](https://qa.fmod.com/u/le12380)\
**Post date:** [May 8, 2020, 10:01am UTC](https://qa.fmod.com/t/channelgroup-setvolume-stop-other-playing-sound-bug/15745/1 "2020-05-08T10:01:21Z")

</div>

version 2.0.1.0  
I create 2 ChannelGound, groupBgm, groupButtonClick  
I play bgm1.mp3 in groupBgm in loop( fmodsystem-\>playsound(…))  
when I execute groupBgm-\>setVolume(0.5), and stop bgm1.mp3 to play bgm2.mp3  
I click btn to playSound buttonClick.wav in groupButtonClick ,  
about play 10 times buttonClick.wav, the bgm2.mp3 stop  
It’s a bug…

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [May 10, 2020, 10:23pm UTC](https://qa.fmod.com/t/channelgroup-setvolume-stop-other-playing-sound-bug/15745/2 "2020-05-10T22:23:48Z")

</div>

It sounds like perhaps you are passing a low number of channels to System::init. Can you provide code to demonstrate your problem?

---

<div class="post-metadata">

**Author:** ![le12380](https://avatars.discourse-cdn.com/v4/letter/l/aca169/32.png) [@le12380](https://qa.fmod.com/u/le12380)\
**Post date:** [May 11, 2020, 4:39am UTC](https://qa.fmod.com/t/channelgroup-setvolume-stop-other-playing-sound-bug/15745/3 "2020-05-11T04:39:48Z")

</div>

I change System::Init(32) to System::Init(1024),it does’t work, it will stop bgm sometime，but ,  
I use soundSound::SetVolume() replace ChannelGroup::setVolume, it work;

I really now what’s the problem, I use cocos2dx-3.17 engine and add fmod in game。  
I use the example: playsound to test the problem Code ,  
passing a low number of channels to System::init(4) , it will stop other sound  
when fmodsystem play many sound in the same time;  
but my problem, after setvolume , i click button to play click sound(0.5s length) very very slow in 3-4 second interval

so i set and I also set System::Init(1024) and use soundGroup::SetVolume to replace channel::setvolume

---

<div class="post-metadata">

**Author:** ![le12380](https://avatars.discourse-cdn.com/v4/letter/l/aca169/32.png) [@le12380](https://qa.fmod.com/u/le12380)\
**Post date:** [May 11, 2020, 6:30am UTC](https://qa.fmod.com/t/channelgroup-setvolume-stop-other-playing-sound-bug/15745/4 "2020-05-11T06:30:46Z")

</div>

it must execute fmodSystem-\>update(); after PlaySound()  
I find the problem , 😂
