0
0

I use DSP In my ChannelGroup
Call AddDsp()
It works well.
But When I Want to remove DSP from my channelGroup…
then I don’t know what to do.

help.

[code:3u82o2ad]
FMOD::ChannelGroup* pMaster,* pSub;
m_system->getMasterChannelGroup( &pMaster );
pMaster->getGroup( nChannelGroup, &pSub );

if(m_pDsp == NULL)
{
FMOD_RESULT result = FMOD_OK;
m_system->createDSPByType(FMOD_DSP_TYPE_TREMOLO, &m_pDsp);
m_pDsp->setParameter(FMOD_DSP_TREMOLO_FREQUENCY, 20);
m_pDsp->setParameter(FMOD_DSP_TREMOLO_DEPTH, 1);
}

if(bUseDsp)
{
if(m_pDsp)
{
pSub->addDSP(m_pDsp, 0);
m_pDsp->setActive(true);
}
}
else
{
m_pDsp->release();
m_pDsp = NULL;
}
[/code:3u82o2ad]

Is this OK?

hmm…

help me.

  • You must to post comments
0
0

To remove a DSP from a channel group after it has been added with addDSP, use DSP::remove. Alternatively using DSP::release will get the job done too, but you will need to recreate the DSP to use it again.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.