Hi there. Im attempting to get DSP working in a project of mine. I have successfully gotten sounds to play and move in 3D and all that, but I cannot get DSP to be applied to any of my channels. Im attempting to apply the highpass filter to a channel but it never works. Im always ending up having the error FMOD_ERR_DSP_NOTFOUND returned. I don’t know why as I have created the DSP unit, or at least I assume I did as VC++ 2005 cannot evaluate the children inside the FMOD::DSP structure.
Heres some code
Thats the declaration, and here is the initialisation in a cpp
[code:2lckg58d]s_instance->m_result = s_instance->m_system->createDSPByType(FMOD_DSP_TYPE_HIGHPASS, &s_instance->m_highPassDSP);[/code:2lckg58d]
You can ignore all of the s_instance stuff, thats just a pointer to my singleton instance.
This is the function that applies the DSP to the channel
[code:2lckg58d]void fsdSoundManager::ApplyDSPToChannel(FMOD::Channel* c)
m_result = c->addDSP(m_highPassDSP, 0);
I can’t work out why the error is always returned. Any ideas anyone?
- drColossus asked 10 years ago
Please login first to submit.