Author Topic: BASS_FX 2.4.12.1  (Read 839883 times)

Arnold

  • Posts: 6
Re: BASS_FX 2.1
« Reply #125 on: 31 Dec '04 - 11:35 »
Hi JOBnik,

the current 2.1 release of bass_fx works fine, but why did`t you implement the user param to the bpm callbacks?
And a second little question: could you build the dll with fileversion info, e.g. 2.1.0.x?

greets and "Happy New Year!"
Arnold


Chris

  • Posts: 2217
Re: BASS_FX 2.1
« Reply #126 on: 31 Dec '04 - 14:47 »
Hi
@JOBnik...
Did you forget to send the Compressor Example ??
@ cst-tech@foni.net please
And the Idea from Arnold about the fileversion would be nice..
Greets Chris

(: JOBnik! :)

  • Posts: 1080
Re: BASS_FX 2.1
« Reply #127 on: 31 Dec '04 - 21:22 »
Hi ;D

JOBNik, you might want to update your signature...it isn't looking well

Yep ;D updated ;)

but why did`t you implement the user param to the bpm callbacks?

Because didn't need it :) if you really want it, then could be added :)

And a second little question: could you build the dll with fileversion info, e.g. 2.1.0.x?

Will be added with a 1st update :)

Did you forget to send the Compressor Example ??
@ cst-tech@foni.net please

Nope ;) didn't have time to update yet ;)

Have fun!

8) JOBnik! 8)

Arnold

  • Posts: 6
Re: BASS_FX 2.1
« Reply #128 on: 1 Jan '05 - 13:55 »
Hi JOBnik,

Quote
Quote from: Arnold on 31 Dec '04 - 11:35
but why did`t you implement the user param to the bpm callbacks?

Because didn't need it  if you really want it, then could be added

it would be very nice if you can do so. :) I need the ability to update a class field from within the callback.

You are doing a great job, thank`s for your work.

Greets Arnold

ken

  • Posts: 752
Re: BASS_FX 2.1
« Reply #129 on: 14 Jan '05 - 14:18 »
Hi JOBnik!

After a few hours recoding I got Temo and reverse working with your new dll. Tempo sounds great!

Just a few features that I miss:

1. Detect sound key of the song, like #F.
2. Get position of each "beat", so I can marke my waveform with line of the beats in the song.
3. Detect if a song ends "F" or "C" (F= fade end, C=cold end)

Also looking forward to the compressor.

Thanks again for a great DLL !!




Chris

  • Posts: 2217
Re: BASS_FX 2.1
« Reply #130 on: 17 Jan '05 - 20:31 »
@ JOBnik
little Questions about the Flags...in Tempo
i must setting the Flags....Speaker,BASS_MP3_SETPOS and floatable....

which Flags are Setting in Bass_StreamCreateFile  (The Decoded Handle)
and which Flags are Setting in the BASS_FX_TempoCreate ....
Greets Chris

(: JOBnik! :)

  • Posts: 1080
Re: BASS_FX 2.1
« Reply #131 on: 18 Jan '05 - 10:21 »
Hi ;D

Sorry for delay with update, I'm having some health problems...

little Questions about the Flags...in Tempo
i must setting the Flags....Speaker,BASS_MP3_SETPOS and floatable....

which Flags are Setting in Bass_StreamCreateFile  (The Decoded Handle)
and which Flags are Setting in the BASS_FX_TempoCreate ....

Set BASS_MP3_SETPOS and floatable to BASS_StreamCreateFile
Set BASS_SPEAKER_xxx to BASS_FX_TempoCreate

* More info and flags see in BASS_FX.C/PAS/BAS API headers ;)

Have fun!

8) JOBnik! 8)

Chris

  • Posts: 2217
Re: BASS_FX 2.1
« Reply #132 on: 19 Jan '05 - 14:14 »
Error in Bass_FX
I have dedected an Error (Orginal PrjBPM Sample) that I can`t so right solve...
Starting PrjBPM
Loading Song
Bumm Crash;

Starting again PrjBPM
Loading the same Song......NOW IT WORK !!!!

Here you can download the Song with the Error will appear
http://playcenterpro.ath.cx/bass_samples/Error_song.mp3
(Bass self will play the Song without any Error)




Here the Error Log

Code: [Select]
date/time         : 2005-01-19 15:09
computer name     : PC-DEVELOPMENT
user name         : development
operating system  : Windows XP Service Pack 1 build 2600
system language   : German
system up time    : 18 minutes 25 seconds
program up time   : 4 seconds
processor         : AMD Athlon(tm) XP 2000+
physical memory   : 263/511 MB (free/total)
free disk space   : (D:) 19,47 GB
display mode      : 1600x1200, 32 bit
process id        : $7a8
executable        : prjBPM.exe
exec. date/time   : 2005-01-19 14:36
version           : 1.0
madExcept version : 2.7e
exception class   : EInvalidOp
exception message : Ungültige Gleitkommaoperation. (invalide Floating Point Operation)

main thread ($808):
77c1b269 +019 MSVCRT.DLL                     _ftol
0049cb97 +1bb prjBPM.exe bpm        233  +36 TfrmBPM.btnOpenClick
00470e4e +086 prjBPM.exe Controls  4621   +9 TControl.Click
004638c7 +02f prjBPM.exe StdCtrls  3347   +3 TButton.Click
00463a2e +01e prjBPM.exe StdCtrls  3399   +1 TButton.CNCommand
00470c23 +1df prjBPM.exe Controls  4561  +53 TControl.WndProc
004746ee +18e prjBPM.exe Controls  6242  +33 TWinControl.WndProc
00463812 +086 prjBPM.exe StdCtrls  3327  +13 TButtonControl.WndProc
0047092e +036 prjBPM.exe Controls  4468   +5 TControl.Perform
004748b0 +03c prjBPM.exe Controls  6288   +6 DoControlMsg
0047508d +015 prjBPM.exe Controls  6474   +1 TWinControl.WMCommand
00490b24 +040 prjBPM.exe Forms     4035   +3 TCustomForm.WMCommand
00470c23 +1df prjBPM.exe Controls  4561  +53 TControl.WndProc
004746ee +18e prjBPM.exe Controls  6242  +33 TWinControl.WndProc
0048e3fc +478 prjBPM.exe Forms     3044 +103 TCustomForm.WndProc
004742c0 +034 prjBPM.exe Controls  6139   +3 TWinControl.MainWndProc
004518c0 +014 prjBPM.exe Classes  10565   +8 StdWndProc
77d1a3de +044 user32.dll                     SendMessageW
77d1adcf +016 user32.dll                     CallWindowProcA
00474834 +13c prjBPM.exe Controls  6269  +23 TWinControl.DefaultHandler
00471375 +015 prjBPM.exe Controls  4752   +1 TControl.WMLButtonUp
00470c23 +1df prjBPM.exe Controls  4561  +53 TControl.WndProc
004746ee +18e prjBPM.exe Controls  6242  +33 TWinControl.WndProc
00463812 +086 prjBPM.exe StdCtrls  3327  +13 TButtonControl.WndProc
004742c0 +034 prjBPM.exe Controls  6139   +3 TWinControl.MainWndProc
004518c0 +014 prjBPM.exe Classes  10565   +8 StdWndProc
77d1910b +006 user32.dll                     DispatchMessageA
00495cb8 +0ac prjBPM.exe Forms     6696  +13 TApplication.ProcessMessage
00495ce3 +00f prjBPM.exe Forms     6715   +1 TApplication.HandleMessage
00495f7e +0a6 prjBPM.exe Forms     6799  +16 TApplication.Run
0049d73b +03b prjBPM.exe prjBPM      15   +3 prjBPM

thread $8e0: <priority:15>
7ffe0304 +04 ???
77f4c522 +0a ntdll.dll     NtWaitForMultipleObjects
77e55f05 +89 kernel32.dll  WaitForMultipleObjectsEx
77e55fd0 +12 kernel32.dll  WaitForMultipleObjects

thread $934: <priority:15>
7ffe0304 +04 ???
77f4c522 +0a ntdll.dll     NtWaitForMultipleObjects
77e55f05 +89 kernel32.dll  WaitForMultipleObjectsEx
77e55fd0 +12 kernel32.dll  WaitForMultipleObjects

thread $950: <priority:15>
7ffe0304 +04 ???
77f4c522 +0a ntdll.dll     NtWaitForMultipleObjects
77e55f05 +89 kernel32.dll  WaitForMultipleObjectsEx
77e55fd0 +12 kernel32.dll  WaitForMultipleObjects

thread $954: <priority:15>
7ffe0304 +04 ???
77f4c532 +0a ntdll.dll              NtWaitForSingleObject
77e5a57a +85 kernel32.dll           WaitForSingleObjectEx
77e5ab6f +0a kernel32.dll           WaitForSingleObject
77c07fb5 +9d MSVCRT.DLL             _endthreadex
0042d253 +27 prjBPM.exe   madExcept ThreadExceptFrame
>> created by main thread ($808) at:
77c0804d +60 MSVCRT.DLL             _beginthreadex

thread $958: <priority:2>
7ffe0304 +04 ???
77f4c532 +0a ntdll.dll              NtWaitForSingleObject
77e5a57a +85 kernel32.dll           WaitForSingleObjectEx
77c07fb5 +9d MSVCRT.DLL             _endthreadex
0042d253 +27 prjBPM.exe   madExcept ThreadExceptFrame
>> created by main thread ($808) at:
77c0804d +60 MSVCRT.DLL             _beginthreadex

thread $984:
7ffe0304 +4 ???
77f4b7f2 +a ntdll.dll  NtDelayExecution

thread $724:
7ffe0304 +4 ???
77f4c022 +a ntdll.dll  NtRemoveIoCompletion

thread $99c:
7ffe0304 +4 ???
77f4c022 +a ntdll.dll  NtRemoveIoCompletion

thread $9a4:
7ffe0304 +4 ???
77f4c022 +a ntdll.dll  NtRemoveIoCompletion

modules:
00400000 prjBPM.exe   0.9.2.800       D:\Programme\Borland\Delphi6\Projects\Dyn_Test
00930000 bass.dll     2.1.0.2         D:\Programme\Borland\Delphi6\Projects\Dyn_Test
00d60000 ctagent.dll  1.0.0.5         D:\WINDOWS\System32
00da0000 iTchHk.dll   1.0.0.0         D:\Programme\Logitech\iTouch
01440000 LgMsgHk.dll  1.1.0.0         D:\Programme\Gemeinsame Dateien\Logitech\Scrolling
01460000 SSSensor.dll 5.5.0.5         D:\WINDOWS\System32
01560000 CAPTLIB.DLL  5.0.0.78        D:\Programme\Babylon
07260000 WMASF.DLL    9.0.0.2980      D:\WINDOWS\System32
08530000 WMVCore.DLL  9.0.0.2980      D:\WINDOWS\System32
10000000 bass_fx.dll                  D:\Programme\Borland\Delphi6\Projects\BPM_Test
4f510000 SHELL32.dll  6.0.2800.1580   D:\WINDOWS\system32
51080000 DSOUND.dll   5.3.1.904       D:\WINDOWS\System32
5b0f0000 UxTheme.dll  6.0.2800.1106   D:\WINDOWS\System32
5ce60000 shmedia.dll  6.0.2800.1157   D:\WINDOWS\System32
5ef80000 KsUser.dll   5.3.0.900       D:\WINDOWS\System32
71500000 browseui.dll 6.0.2800.1584   D:\WINDOWS\System32
71700000 shdocvw.dll  6.0.2800.1606   D:\WINDOWS\System32
71a00000 WS2HELP.dll  5.1.2600.0      D:\WINDOWS\System32
71a10000 WS2_32.dll   5.1.2600.1240   D:\WINDOWS\System32
71a30000 wsock32.dll  5.1.2600.0      D:\WINDOWS\System32
71ba0000 NETAPI32.dll 5.1.2600.1562   D:\WINDOWS\System32
72c80000 msacm32.drv  5.1.2600.0      D:\WINDOWS\System32
72c90000 wdmaud.drv   5.1.2600.0      D:\WINDOWS\System32
73ac0000 AVIFIL32.dll 5.1.2600.1106   D:\WINDOWS\System32
73b40000 MSVFW32.dll  5.1.2600.1106   D:\WINDOWS\System32
746a0000 MSCTF.dll    5.1.2600.1106   D:\WINDOWS\System32
746f0000 mlang.dll    6.0.2800.1155   D:\WINDOWS\System32
75a10000 USERENV.dll  5.1.2600.1106   D:\WINDOWS\system32
75ee0000 appHelp.dll  5.1.2600.1106   D:\WINDOWS\system32
76350000 comdlg32.dll 6.0.2800.1106   D:\WINDOWS\system32
765a0000 CSCDLL.dll   5.1.2600.1599   D:\WINDOWS\System32
765c0000 cscui.dll    5.1.2600.1106   D:\WINDOWS\System32
76620000 SETUPAPI.dll 5.1.2600.1106   D:\WINDOWS\System32
76940000 ntshrui.dll  5.1.2600.1106   D:\WINDOWS\System32
76ad0000 ATL.DLL      3.0.9435.0      D:\WINDOWS\System32
76af0000 WINMM.dll    5.1.2600.1106   D:\WINDOWS\System32
76f50000 Secur32.dll  5.1.2600.1106   D:\WINDOWS\System32
77010000 COMRes.dll   2001.12.4414.42 D:\WINDOWS\System32
770f0000 oleaut32.dll 3.50.5016.0     D:\WINDOWS\system32
772a0000 SHLWAPI.dll  6.0.2800.1584   D:\WINDOWS\system32
77310000 comctl32.dll 5.82.2800.1106  D:\WINDOWS\system32
77ba0000 midimap.dll  5.1.2600.0      D:\WINDOWS\System32
77bb0000 MSACM32.dll  5.1.2600.0      D:\WINDOWS\System32
77bd0000 version.dll  5.1.2600.0      D:\WINDOWS\system32
77be0000 MSVCRT.DLL   7.0.2600.1106   D:\WINDOWS\system32
77d10000 user32.dll   5.1.2600.1617   D:\WINDOWS\system32
77da0000 ADVAPI32.dll 5.1.2600.1106   D:\WINDOWS\system32
77e40000 kernel32.dll 5.1.2600.1560   D:\WINDOWS\system32
77f40000 ntdll.dll    5.1.2600.1221   D:\WINDOWS\System32
78000000 RPCRT4.dll   5.1.2600.1361   D:\WINDOWS\system32
78090000 comctl32.dll 6.0.2800.1579   D:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.1579_x-ww_7bbf8d08
7a170000 CLBCATQ.DLL  2001.12.4414.53 D:\WINDOWS\System32
7ccc0000 OLE32.DLL    5.1.2600.1362   D:\WINDOWS\system32
7f000000 GDI32.dll    5.1.2600.1561   D:\WINDOWS\system32

disassembling:
77c1b250 public _ftol:                    ; function entry point
77c1b250   push    ebp
77c1b251   mov     ebp, esp
77c1b253   add     esp, -$c
77c1b256   wait
77c1b257   fnstcw  word ptr [ebp-2]
77c1b25a   wait
77c1b25b   mov     ax, [ebp-2]
77c1b25f   or      ah, $c
77c1b262   mov     [ebp-4], ax
77c1b266   fldcw   word ptr [ebp-4]
77c1b269 > fistp   qword ptr [ebp-$c]
77c1b26c   fldcw   word ptr [ebp-2]
77c1b26f   mov     eax, [ebp-$c]
77c1b272   mov     edx, [ebp-8]
77c1b275   leave
77c1b276   ret

Greets Chris
                           
« Last Edit: 19 Jan '05 - 14:32 by Chris »

Chris

  • Posts: 2217
Re: BASS_FX 2.1
« Reply #133 on: 23 Jan '05 - 13:39 »
After Update to Bass Version 2.1.0.3
it will work without any Errors
Greets Chris

(: JOBnik! :)

  • Posts: 1080
Re: BASS_FX 2.1
« Reply #134 on: 4 Feb '05 - 22:43 »
Hi ;D

Chris & MB_SOFT please check your e-mails, I've sent you DSP Compressor to test :)

Have fun!

8) JOBnik! 8)

MB_SOFT

  • Posts: 496
Re: BASS_FX 2.1
« Reply #135 on: 5 Feb '05 - 13:43 »
Hi ;D

Chris & MB_SOFT please check your e-mails, I've sent you DSP Compressor to test :)

Have fun!

8) JOBnik! 8)

Thank you..i'm going to test it......

Chris

  • Posts: 2217
Re: BASS_FX 2.1
« Reply #136 on: 5 Feb '05 - 19:48 »
Hi
so after a 4 hour Test The New Effekt is very stable and will work under 16 Bit and 32 Bit Channels fine...
But
I have try to play a little bit with the Parameters and can`t dedected any Changes about the Sound;
(The Limiting is a little bit to soft)
Code: [Select]
procedure Form1.StartCompressor;
Bass_FX_DSP_SET(Channel,BASS_FX_DSPFX_COMPRESSOR,Sound_config.CompressorPrio.Position);
   BASS_FX_DSP_GetParameters(Channel,BASS_FX_DSPFX_COMPRESSOR,@CompressorParam[1]);
   CompressorParam[1].fAttacktime := 10.0;
   CompressorParam[1].fReleasetime:= 200.0;
   CompressorParam[1].fThreshold  := 0.8;
   BASS_FX_DSP_SetParameters(Channel,BASS_FX_DSPFX_COMPRESSOR,@CompressorParam[1]);
end;

procedure ChangeCompressorParam(Sender : TObject);
begin
     BASS_FX_DSP_GetParameters(Channel,BASS_FX_DSPFX_COMPRESSOR,@CompressorParam[1]);
     CompressorParam[1].fAttacktime := Trackbar1.Position / 10;
     CompressorParam[1].fReleasetime:= Trackbar2.Position / 10;
     CompressorParam[1].fThreshold  := Trackbar3.Position / 1000;
     BASS_FX_DSP_SetParameters(Channel,BASS_FX_DSPFX_COMPRESSOR,@CompressorParam[1]);
end;
Maybe (if possible) possible Parameters for a litte bit more hard Limiting then the Effekt is a perfekt alternative
to the FX Effekt Compressor
But by the way you have done a great Job
Greets Chris
« Last Edit: 5 Feb '05 - 19:51 by Chris »

(: JOBnik! :)

  • Posts: 1080
Re: BASS_FX 2.1
« Reply #137 on: 6 Feb '05 - 10:33 »
Hi ;D

Oops...  ::) I've sent you another update to test :)

Thank you :)

Have fun!

8) JOBnik! 8)

Chris

  • Posts: 2217
Re: BASS_FX 2.1
« Reply #138 on: 6 Feb '05 - 20:13 »
Hi
Yup Parameter will now work fine.....
Only one Problem  if I`m changing the Paramter the Sound will scraper
(I`m using a BASS_CONFIG_BUFFER of 500)
(Testing with 16 AND 32 Bit Channels
Greets Chris

(: JOBnik! :)

  • Posts: 1080
Re: BASS_FX 2.1
« Reply #139 on: 6 Feb '05 - 21:12 »
Hi ;D

Only one Problem  if I`m changing the Paramter the Sound will scraper

Another update is in your mail box ;)

Thank you :)

Have fun!

8) JOBnik! 8)

Chris

  • Posts: 2217
Re: BASS_FX 2.1
« Reply #140 on: 14 Feb '05 - 02:36 »
So sorry about the Delay.....the last days I have had not so much time...
The New Release will working fine..!!!
Only one Thing a little bit  scraper if the Parameters  of
fThreshold ,fAttacktime,fReleasetime at the Min Values(0.1 - 0.5) Maybe its better to set the MinValues a little bit higher
But i must say the Effekt is very stable
One Question about the Compressor
The FX Compressor will have one Great Effekt if a Audiosong is a liitle bit clipped
with the Active FX Compressor the Clipping is going...is that from the Theory with the DSP Compressor also possible ??
Greets Chris


« Last Edit: 14 Feb '05 - 03:29 by Chris »

HarryHar

  • Posts: 147
Re: BASS_FX 2.1
« Reply #141 on: 19 Feb '05 - 00:17 »
Just wondering am I doing something wrong or is it not possible to count the BPM of a WMA file. returns 0 everytime.

Also, i get a lot of floating point errors with a lot of songs (MP3). Anu ideas ???

gr. Harold

Chris

  • Posts: 2217
Re: BASS_FX 2.1
« Reply #142 on: 19 Feb '05 - 01:51 »
Hi
Code: [Select]
var
 BPMHandle : HStream;
begin
  bpmHandle := BASS_StreamCreateFile(false, PChar(FileName), 0,
        0, BASS_SAMPLE_LOOP or  BASS_STREAM_DECODE);
      if (bpmHandle = 0) then
        bpmHandle := BASS_WMA_StreamCreateFile(false,
          PChar(FileName), 0, 0, BASS_SAMPLE_LOOP or  BASS_STREAM_DECODE);
   If BPMHandle <> 0 then begin
     //Do some Stuff
   end;

Greets Chris
about your FloatingPoint Errors Show please the Rest of your Code
 
« Last Edit: 19 Feb '05 - 01:53 by Chris »

Chris

  • Posts: 2217
Re: BASS_FX 2.1
« Reply #143 on: 21 Feb '05 - 19:36 »
@ JOBnik!
I will have here some Problems with the Updated BASS_FX_DSPFX_DAMP
Auto Decreasing The Level will work ...
but
Auto Increasing The Level will not longer work !!!
Do you have change some thing in the Beta Release ???
Greets Chris
« Last Edit: 21 Feb '05 - 20:30 by Chris »

Chris

  • Posts: 2217
Re: BASS_FX 2.1.0.1
« Reply #144 on: 22 Feb '05 - 05:21 »
Hi
The Final Bass_FX.dll will working Fine now
(The Bug in the BASS_FX_DSPFX_DAMP is History  :)

Good working !!!!!
One Question
BASS_DSPFX_APF (ALL Pass Filter)
It seams that this Filter will have the Same Effect as BASS_FX_DSPFX_REVERB .....
and
BASS_FXDSPFX_LPF (LOWPASSFILTER)
it seams that this Filter will have the same Effect  as BASS_FX_DSPFX_S2M

Greets Chris
« Last Edit: 22 Feb '05 - 07:46 by Chris »

georgebou

  • Posts: 189
Re: BASS_FX 2.1.0.1
« Reply #145 on: 17 Mar '05 - 10:15 »
Hello Jobnik.
I use the code below and the GetPosFloat returns wrong file length in Secs.
Code: [Select]
Var
   GetPosQword:Int64;
   GetPosDword:Cardinal;
   GetPosFloat:Extended;

 // Free musics
 If BASSAPI_HandleOf_MOD<>0 Then Begin
    BASS_MusicFree(BASSAPI_HandleOf_MOD);
 End;
 // Handle flags for MOD Files
 GenerateFlagForMODFiles:=BASS_MUSIC_CALCLEN or BASS_STREAM_DECODE;

 BASSAPI_HandleOf_MOD := BASS_MusicLoad(FALSE, f, 0, 0, GenerateFlagFor_Files,0);
BASSAPI_HandleOf_MOD := BASS_FX_TempoCreate(BASSAPI_HandleOf_MOD, BASS_FX_FREESOURCE);
                    GetPosDword:=BASS_MusicGetLength(BASSAPI_HandleOf_MOD,TRUE);
GetPosQword:=GetPosDword;
GetPosFloat:=BASS_ChannelBytes2Seconds(BASSAPI_HandleOf_MOD,GetPosQword);

When i Don't use the
BASSAPI_HandleOf_MOD := BASS_FX_TempoCreate(BASSAPI_HandleOf_MOD, BASS_FX_FREESOURCE);
the file length in Secs is calculated correctly.
What's going on? This happens only with HMusic Music files

(: JOBnik! :)

  • Posts: 1080
Re: BASS_FX 2.1.0.1
« Reply #146 on: 17 Mar '05 - 11:27 »
Hi ;D

You can get the file length before creating a Tempo stream, or just don't forget that you've to get the length of the original/source handle with: BASS_FX_TempoGetSource(..) function :)

e.g:
Code: [Select]
GetPosDword:=BASS_MusicGetLength(BASS_FX_TempoGetSource(BASSAPI_HandleOf_MOD),TRUE);
Have fun!

8) JOBnik! 8)

georgebou

  • Posts: 189
Re: BASS_FX 2.1.0.1
« Reply #147 on: 17 Mar '05 - 19:17 »
OK, thanks a lot. 8)

Chris

  • Posts: 2217
Re: BASS_FX 2.1.0.1
« Reply #148 on: 22 Mar '05 - 10:37 »
Hi
I have still dedected a Crash in the Bass_fx.dll
it seams to be The Call  Bass_ChannelGetData inside of  the Bass_FX.dll
Code: [Select]
EAccessViolation by Adress  03009856 in Modul 'bass_fx.dll  Reading Adress of 045DD000

thread $5d0: <priority:15>
03009856 +00 bass_fx.dll
77c0a3ad +a6 msvcrt.dll            _endthreadex
0042faaf +27 PC_Pro.exe  madExcept ThreadExceptFrame

main thread ($fb4):
7c90eb94 +000 ntdll.dll                       KiFastSystemCallRet
7c90e9be +00a ntdll.dll                       NtWaitForSingleObject
7c919016 +087 ntdll.dll                       RtlpWaitForCriticalSection
7c901046 +041 ntdll.dll                       RtlEnterCriticalSection
1001bdc3 +399 bass.dll                        BASS_ChannelGetData
1001c42a +075 bass.dll                        BASS_ChannelGetLevel
733a9599 +00a MSVBVM60.DLL                    BASIC_CLASS_Release
004cb345 +01d PC_Pro.exe   Player_A  2073  +1 TPlayerA.SetVuMeter
005ae7eb +05b PC_Pro.exe   MainForm  3133  +6 TForm_Raum_1.pos_timer_2Timer
00477ddf +01b PC_Pro.exe   ExtCtrls  1620  +1 TTimer.Timer
00477c4b +02f PC_Pro.exe   ExtCtrls  1578  +4 TTimer.WndProc
00457e50 +014 PC_Pro.exe   Classes  10565  +8 StdWndProc
77d1bcc7 +00a user32.dll                      DispatchMessageA
004ada5c +0ac PC_Pro.exe   Forms     6696 +13 TApplication.ProcessMessage
004adaa3 +00f PC_Pro.exe   Forms     6715  +1 TApplication.HandleMessage
004add3e +0a6 PC_Pro.exe   Forms     6799 +16 TApplication.Run
005c4b0d +29d PC_Pro.exe   PC_Pro      76 +35 initialization

disassembling:
0300984a loc_300984a:
0300984a   cmp     edx, ecx
0300984c   jge     loc_300988c
0300984c
0300984e   mov     eax, edx
03009850   add     edx, [ebp+$10]
03009853   shl     eax, 2
03009850
03009856 sub_3009856:                     ; function entry point
03009856 > fld     dword ptr [esi+edx*4]
03009859   fsub    dword ptr [eax+esi]
0300985c   fcomp   dword ptr [$300b140]
03009862   fnstsw  ax
03009864   test    ah, $41
03009867   jp      loc_3009882
03009867
03009869   test    ebx, ebx
0300986b   jz      loc_300986e
0300986b
0300986d   dec     ebx
0300986b
0300986e loc_300986e:
0300986e   fcom    dword ptr [esi+edx*4]
03009871   fnstsw  ax
03009873   test    ah, $41
03009876   jnz     loc_3009888
03009876
03009878   fstp    st
0300987a   fld     dword ptr [esi+edx*4]
0300987d   mov     [ebp+8], edx
03009880   jmp     loc_3009888
03009880
03009880 ; ---------------------------------------------------------
03009880
03009882 loc_3009882:
03009882   inc     ebx
03009883   cmp     ebx, 5
03009886   jg      loc_300988c
03009886
03009888 loc_3009888:
03009888   cmp     edx, edi
0300988a   jg      loc_300984a
0300988a
0300988c loc_300988c:
0300988c   mov     eax, [ebp+8]
0300988f   pop     edi
03009890   pop     esi
03009891   pop     ebx
03009892   fstp    st
03009894   pop     ebp
03009895   ret     $c
Greets Chris
« Last Edit: 22 Mar '05 - 10:39 by Chris »

nadia

  • Posts: 332
BASS_FX_FREESOURCE questions
« Reply #149 on: 24 Mar '05 - 09:36 »
Hi,  ;D

2 questions:

1- does the BASS_FX_TempoGetSource returns a valid handle if the BASS_FX_TempoCreate was called using the BASS_FX_FREESOURCE flag? From the documentation I cannot find this information.

2- if I call the BASS_FX_TempoGetSource without specifying BASS_FX_FREESOURCE flag, how will the original channel be deallocated?

Thanks in advance and Kind Regards  ;D

Nadia