Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - ricardo

Pages: [1]
« on: May 27, 2008, 04:21:42 PM »

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:

Code: [Select]
  Handle1=BASS_StreamCreateFile(0, @filename, 0, 0, 0)
  Debug BASS_ErrorGetCode()
  uEndPos = BASS_ChannelGetLength(Handle1,#BASS_POS_BYTE)
  Debug BASS_ErrorGetCode()
  hVolume.f = 1
  Debug BASS_ErrorGetCode()
  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!


I tried too using the BASS_STREAM_DECODE flag when creating the Stream, with same results.

Pages: [1]