0
0

Hello,

I get confused about which way is the proper way to stop all the snd,

Way 1: Using the master channel
[code]
FMOD::ChannelGroup* masterChannelGroup = NULL;
SoundGetSystem()->getMasterChannelGroup(&masterChannelGroup);
if (masterChannelGroup)
SOUND_CHECK_ASSERT(masterChannelGroup->stop());
[/code]

Way 2: Manually go through all the channel
[code]
FMOD::SoundGroup* masterSndGround = NULL;
SoundGetSystem()->getMasterSoundGroup(&masterSndGround);
if (masterSndGround)
SOUND_CHECK_ASSERT(masterSndGround->stop());
[/code]

On of my problem is that when I try to stop all the snd using the code above, it seems that the sound will still continue to play for while before really stop. Any idea? Thanks for advance!

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.