Author Topic: BASS_FX_Reverse muted ?  (Read 3408 times)

fredvs

  • Posts: 327
BASS_FX_Reverse muted ?
« on: 21 Feb '03 - 03:37 »
Hello folks, i dont hear anything, where is the problem ?
(of course sample.mp3 exists and is ok)

procedure TForm1.Button1Click(Sender: TObject);
var
f: PChar;
stream, streamreverse : hstream;

begin

f := PChar('sample.mp3') ;
stream := BASS_StreamCreateFile(FALSE, f, 0, 0, 0);
streamreverse := BASS_FX_ReverseCreate(stream,2.0,true) ;
BASS_StreamPlay(streamreverse, FALSE, 0)  ;

end;

(: JOBnik! :)

  • Posts: 1065
Re: BASS_FX_Reverse muted ?
« Reply #1 on: 21 Feb '03 - 16:00 »
Hi ;D

You have to make a DECODED stream 1st :)
add a flag: BASS_STREAM_DECODE here:

stream := BASS_StreamCreateFile(FALSE, f, 0, 0, BASS_STREAM_DECODE);

and if you want a better MP3/2/1 Reverse playback then use another flag: BASS_MP3_SETPOS

Have fun!

8) JOBnik! 8)
« Last Edit: 21 Feb '03 - 16:59 by JOBnik »

fredvs

  • Posts: 327
Re: BASS_FX_Reverse muted ?
« Reply #2 on: 22 Feb '03 - 03:28 »
Sorry but it is still muted....

(: JOBnik! :)

  • Posts: 1065
Re: BASS_FX_Reverse muted ?
« Reply #3 on: 22 Feb '03 - 18:04 »
Hi ;D

The 3rd parameter of the function:
BASS_FX_ReverseCreate(..);

is:
decode : allow the reversed stream to be created as a decoding channel, if you would like to use it with BASS_FX_Pitch... + DX8 FX.

set it to - FALSE - if you don't use it with BASS_FX_Pitch... functions, or to - TRUE - if you do :)

Have fun!

8) JOBnik! 8)

fredvs

  • Posts: 327
Re: BASS_FX_Reverse muted ?
« Reply #4 on: 23 Feb '03 - 06:04 »
Still sorry, it doesnt work.
To say my truth, bass.dll works perfectly with my old Delphi 3, playing hours and hours, with full bass effects, multiple streams,... but with all the others dll (bass_fx,...) i have problems.
Perhaps it is when i have adapted bass_fx.pas to work with Delphi 3.
Thanks to Ian, for bass.pas i have no problems with the adaptation, all the functions (that i have tried) are recognized.
I have tried one more time to work with that dll, but i think i gonna do this effect by myself.

(: JOBnik! :)

  • Posts: 1065
Re: BASS_FX_Reverse muted ?
« Reply #5 on: 23 Feb '03 - 09:31 »
Hi ;D

It works fine for me with C/C++ and VB :)
Try to rename the 3rd parameters type from: Boolean
to LongBool

Hope it helps :)

Have fun!

8) JOBnik! 8)

(: JOBnik! :)

  • Posts: 1065
Re: BASS_FX_Reverse muted ?
« Reply #6 on: 23 Feb '03 - 16:48 »
Hi ;D

I don't know which values are supported with: Boolean type in Delphi.
But the actual values should be:
TRUE  = 1
FALSE = 0
So, I guess you can change it to Integer and Post the Values: 0 or 1 (instead of TRUE/FALSE)

Have fun!

8) JOBnik! 8)

fredvs

  • Posts: 327
Re: BASS_FX_Reverse muted ?
« Reply #7 on: 23 Feb '03 - 18:41 »
Hello
I dont think the problem is boolean, Delphi accept the boolean parameters (and even if it does not recognize, i will receive a error message).

The problem is that it seems to load well, it accept each parameter but when i click, no error message but.. a heard no sound....