I’m trying to stop all currently playing sounds through the mastergroup.
I have created two channelgroups for soundfx and music and added them
to the mastergroup. Then i’am playing some sounds in both groups. But when
i try to stop all sounds through the mastergroup (ChannelGroup::stop) it doesn’t work. It seems, that i can only stop those sounds which were directly added to a channelgroup (stopping the sounds through the two child groups works) ?! How can i stop all sounds ?
- joxer123 asked 13 years ago
[quote="brett":33y067qt]this means you simply should be calling stop on your music group and sfx group. You probably don’t really need an sfx group.[/quote:33y067qt]
so i have to go through all groups an call stop if i want to stop all sounds.
I thought the mechanism would be equal to the function ChannelGroup::overridePaused, where i can pause/unpause all sounds through the mastergroup.
This means a lot of work if you’re using a more sophisticated group-hierarchy (e.g. some special dsp-effects for only some soundfx). 😥
Ok, this is what i have tried, but it it doesn’t work.
You can use the channelgroup example. Group A and B are added to the
master group via ChannelGroup::addGroup. When you try to stop the 6
sounds through the master group it won’t work.
So, either the function does not work proper (on child groups), or i have
not understood it’s meaning.
Don’t get me wrong. It’s no problem to stop the sounds via the child groups.
I’m just cunfused by this behaviour.
Please login first to submit.