Gets the current beat parameter values.
Namespace: Un4seen.Bass.AddOn.Fx
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.2
Syntax
[DllImportAttribute("bass_fx")] public static bool BASS_FX_BPM_BeatGetParameters( int handle, Object bandwidth, Object centerfreq, Object beat_rtime )
Parameters
- handle
- Type: SystemInt32
Stream/music/wma/cd/any other supported add-on format. - bandwidth
- Type: SystemObject
Current bandwidth in Hz (=don't retrieve it). - centerfreq
- Type: SystemObject
Current center-frequency of the band pass filter in Hz (=don't retrieve it). - beat_rtime
- Type: SystemObject
Current beat release time in ms. (=don't retrieve it).
Return Value
Type: BooleanIf successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not valid. |
Examples
object beat_rtime = 0f; if (BassFx.BASS_FX_BPM_BeatGetParameters(stream, null, null, beat_rtime)) { // beat_rtime must be casted back to a float Console.WriteLine("Release-Time={0}", (float)beat_rtime); }
See Also