BASS_FX_BPM_CallbackSet returns BASS_FX_ERROR_HAND

Started by vertex,

vertex

hi,

BASS_FX_BPM_CallbackSet returns BASS_FX_ERROR_HAND in my small test-app:

BASS_Init[0](-1, 44100, 0, 0);
BASS_Start[0]();
DWORD chan = BASS_StreamCreateFile[0](false, (void*)file.operator LPCTSTR(), 0, 0, BASS_STREAM_AUTOFREE);
BASS_StreamPlay[0](chan, 0, 0);
BASS_FX_BPM_CallbackSet[0](chan, (BPMPROC*)GetBPM_Callback, 1.0f, 0, BASS_FX_BPM_MULT2);

until 'BASS_FX_BPM_CallbackSet' everything works fine (as expected). but the call BASS_FX_BPM_CallbackSet returns an (to me) unexpected
'BASS_FX_ERROR_HANDLE: Invalid handle'
am i just lazy?  ???

the BASS...[0](... means: i try to implement the bass_fx.dll in my multi-audioboard-app. so i loaded several instances of bass-temp-files and do the same with bass_fx.dll... maybe thats the prob.? ::)

vertex

ok, found out, its the problem of multible bass-instances.
(Topic: Bass_FX + Multi-instance support)

f*!?

Ian @ un4seen

There shouldn't be any problem using multiple BASS_FX instances. Did you try running the example in that thread?

It's just a matter of naming the files correctly. Some examples...
  • bass_fx.dll + bass.dll
  • blah_fx.dll + blah.dll
  • abc_fx1.dll + abc1.dll
  • xyz_fx123.tmp + xyz123.tmp
See the pattern? :)

vertex

the bass-section works well, it plays and stops  :laugh:
if i load 'bass.dll' instead of 'bass_tmp_xxx.dll' it works. the fx-dll get another tmp-name:
eg.:
bass13567.dll
fx45638.dll

so i try now something like
bass_13xx.dll
bass_fx_13xx.dll
 :idea:

hope that works  ::)

cheers,
vertex

vertex

IT WORKS!  ;D

ian, i don´t know, why you know so much about the bass.dll  :laugh: but if you ever meet the developer of bass: thanx a lot  :laugh: :laugh:

cheers,
vertex

Irrational86


Quoteian, i don´t know, why you know so much about the bass.dll  :laugh: but if you ever meet the developer of bass: thanx a lot  :laugh: :laugh:
:laugh: ... he IS the developer of bass, thats why he knows so much about it.. ;D