0
0

👿
A question from Argentina.(Sorry for my bad English)

I have a problem in the passage of parameters in the following function:
For example:

fxHandle := FSOUND_FX_Enable(Channel, FSOUND_FX_PARAMEQ);

Channel is (of course) a integer
FSOUND_FX_PARAMEQ is a Enum, however the function requests a type cardinal

I proved in the following way:

fxHandle := FSOUND_FX_Enable(Channel, Ord(FSOUND_FX_PARAMEQ));

Me not you if this is correct, but fxHandle=-1, and message is “Invalid argument”

Which the correct way to pass this parameter?

Thanks.

  • You must to post comments
0
0

You are quite right there. The second parameter should indeed be of type TFSoundFXModes, not Cardinal. As for the invalid argument, I’m not sure why that would be happening. I have never used FX myself.

  • You must to post comments
0
0

I work with VB, although I believe that “fxHandle := FSOUND_FX_Enable(Channel, ord(FSOUND_FX_PARAMEQ));” it is not bad.
The error can be in another side. Do you call to FSOUND_SetPaused(TRUE) before initializing the FX? If it is not this way, it won’t work.
The order is the following one:
1) FSOUND_SetPaused(TRUE);
2) fxHandle := FSOUND_FX_Enable(Channel, ord(FSOUND_FX_PARAMEQ));
3) FSOUND_SetPaused(FALSE);
4) FSOUND_FX_SetParamEQ………

Saludos, también de Argentina!!!
Colores.

  • You must to post comments
0
0

Yes, maybe the error is in another part. I use the function:

Channel:=FSOUND_Stream_PlayEx(FSOUND_FREE, stream1, DSPUnit,True);

with the last parameter in true, this means that this paused.

Maybe the error this in the DSPUnit or in another part. does Somebody know where there is a complete example with stream and EQ?

  • You must to post comments
0
0

😀 My problem is solution, I download the last version of FMOD, seemingly it was only an bug. Thanks to all.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.