0
0

FMOD_DSP_SetParameter(Eq4, FMOD_DSP_PARAMEQ_CENTER, 1000)

All calls to Fmodex to the FMOD_DSP_SetParameter results in Fmodex giving a Divide by zero error. Brett said it only does it in the VB6 Pro IDE, that doing a step by step debug will work and compiling to an EXE the call will work without errors.

My VB6 Pro Ide gives me a Divide by zero error when it calls Fmodex. When I do a step by step debug, the call to Fmodex gives me a Divide by zero error. When I compile the program to an EXE file and run, everything works but there is no sound.

What’s wrong? Do you have to set something before you call Fmodex?

I do a result = FMOD_System_CreateDSPByType(system, FMOD_DSP_TYPE_PARAMEQ, Eq4) first then I do a result = FMOD_System_AddDSP(system, Eq4), then I do
result = FMOD_DSP_SetParameter(Eq4, FMOD_DSP_PARAMEQ_CENTER, 1000)
ERRCHECK (result)
result = FMOD_DSP_SetParameter(Eq4, FMOD_DSP_PARAMEQ_BANDWIDTH, 2)
ERRCHECK (result)
result = FMOD_DSP_SetParameter(Eq4, FMOD_DSP_PARAMEQ_GAIN, 0.05)

What have I left out or is it Fmodex?

Mike

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.