BASS.NET API for the Un4seen BASS Audio Library

VisualsDetectPeakFrequency Method

BASS.NET API for the Un4seen BASS Audio Library
Returns the frequency (in Hz) containing the maximum energy within the current FFT data when calling this method.

Namespace:  Un4seen.Bass.Misc
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

public int DetectPeakFrequency(
	int channel,
	out float energy
)

Parameters

channel
Type: SystemInt32
The channel for which to detect the peak frequency.
energy
Type: SystemSingle
Returns the energy (amplitude level) of the detected peak frequency.

Return Value

Type: Int32
The frequency (in Hz) containing the most energy. Or 0, if an error occurred.
See Also

Reference