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
SoundManager.h
[code:2lckg58d]FMOD::DSP* m_highPassDSP;[/code:2lckg58d]
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);
}[/code:2lckg58d]
I can’t work out why the error is always returned. Any ideas anyone?
Tom
- drColossus asked 10 years ago
- You must login to post comments
Is it possible you’re using a hardware sound instead of a software sound? It may be that the error should be FMOD_ERR_NEEDSSOFTWARE which is something we could probably change.
- Brett Paterson answered 10 years ago
- You must login to post comments
Yep that fixed it.
Thanks for that.
Tom
- drColossus answered 10 years ago
- You must login to post comments
Please login first to submit.