User defined callback function, to get the Beat position in seconds.
Assembly: Bass.Net (in Bass.Net.dll) Version: 188.8.131.52
public delegate void BPMBEATPROC( int handle, double beatpos, IntPtr user )
Public Delegate Sub BPMBEATPROC ( handle As Integer, beatpos As Double, user As IntPtr )
- Type: SystemInt32
Handle that the BASS_FX_BPM_BeatCallbackSet(Int32, BPMBEATPROC, IntPtr) or BASS_FX_BPM_BeatDecodeGet(Int32, Double, Double, BASSFXBpm, BPMBEATPROC, IntPtr) has applied to.
- Type: SystemDouble
The exact beat position in seconds.
- Type: SystemIntPtr
The user instance data given when BASS_FX_BPM_BeatCallbackSet(Int32, BPMBEATPROC, IntPtr) or BASS_FX_BPM_BeatDecodeGet(Int32, Double, Double, BASSFXBpm, BPMBEATPROC, IntPtr) was called.
NOTE: When you pass an instance of a callback delegate to one of the BASS functions, this delegate object will not be reference counted. This means .NET would not know, that it might still being used by BASS. The Garbage Collector might (re)move the delegate instance, if the variable holding the delegate is not declared as global. So make sure to always keep your delegate instance in a variable which lives as long as BASS needs it, e.g. use a global variable or member.