Hello
Im using BASS_FX for a while (i was using 2.3.x versions) and now im changing to new version.
Im trying the BPM wich i never used before.
In my tests, getting the BEAT callback to work its okay.
My problem is with the BPM part.
per example, when i try to get the BPM the function never returns back.
Let me show my PureBasic code:
BASS_StreamFree(Handle1)
Handle1=BASS_StreamCreateFile(0, @filename, 0, 0, 0)
Debug BASS_ErrorGetCode()
uEndPos = BASS_ChannelGetLength(Handle1,#BASS_POS_BYTE)
Debug BASS_ErrorGetCode()
hVolume.f = 1
BASS_ChannelSetAttribute(Handle1,#BASS_ATTRIB_VOL,hVolume)
Debug BASS_ErrorGetCode()
BASS_ChannelPlay(Handle1,0)
Debug BASS_ErrorGetCode()
Debug BASS_FX_BPM_DecodeGet(Handle1,10,14,0,#BASS_FX_BPM_BKGRND|#BASS_FX_FREESOURCE,@ObtieneBPMCallBack())
Debug BASS_ErrorGetCode()
The mp3 start playing and everything goes fine. I receive just error codes = 0
But when calling BASS_FX_BPM_DecodeGet i dont receive nothing, not error not nothing, just stay there and never return back.
Im doing something wrong?
Thanks in advance!
Note:
I tried too using the BASS_STREAM_DECODE flag when creating the Stream, with same results.