I’m sorry, I do have a question but not for this reason. Shame on me.
//error occured when playing the sound
system->playSound( pTestSound1, ProxyMasterGroup, false, 0 );
It’s about this ProxyMasterGroup.
I ask a question about the masterchannelgroup->SetMute does not work before,so I create a proxychannelgroup add to masterchannelgroup.
Here’s how I get the proxychannelgoup. It’s nothing wrong in 1.1.11version.
FMOD::Studio::ID busID = {0};
FMOD_RESULT result = m_pFmodSystem->lookupBusID( "/ProxyMasterGroup",&busID ); //get my proxymastergroup
if ( result != FMOD_OK )
{
return false;
}
FMOD::Studio::MixerStrip * mixer = new FMOD::Studio::MixerStrip;
result = m_pFmodSystem->getMixerStrip( &busID, loadingMode, mixer );
if ( result != FMOD_OK )
{
return false;
}
result = mixer->getChannelGroup( &ProxyMasterGroup );
if ( result != FMOD_OK )
{
return false;
}
mixer->release(); //this line caused the error
I’m sorry again.
So in the 1.2.5 version I can’t release the mixerstrip even though I just want the channelgroup in it?
Do you mean a compiler error? Have a look at FMOD_CREATESOUNDEXINFO struct again, you can see your members are fileuseropen, fileuserseek, etc, rather than just useropen/userseek/…
I do see that you probably saw that, if you changed void**userdata to void *userdata, which it is now.
Did you pass 0 to createStream? That can return an error with your code.
I used your code and did this, and it played the sound no problem.
Thanks for your reply.
That problem has been solved.I checked FMOD_CREATESOUNDEXINFO again,but the members are still useropen/userseek/… Maybe I used a old version.