BASS_FXECHO and Delphi

Started by Ghostwalker,

Ghostwalker

Hi,

i try out the Bass-FX at the moment. All FX work fine, only when i set BASS_FXECHO-Member lPanDelay to TRUE i'll get an Error "Illegal Param".

In Bass.pas the value is defined as bool (Longbool) so, 0=FALSE all other values are TRUE. Mayby a bug in translation ?


Ian @ un4seen

I think it may be a problem with the Delphi definition of "TRUE". In C/C++, TRUE = 1, and that's what the echo FX expects, but maybe Delphi uses the value -1 when you specify "TRUE"? Try forcing the "lPanDelay" member to 1.

Ghostwalker

hm...a little mysterios. i changed the definition of the structur form bool to integer and give 1 (TRUE) or 0 (FALSE). Know it runs....


Greetings and Thx

Ghoustwalker