BASS.NET API for the Un4seen BASS Audio LibraryVisualsDetectPeakFrequency 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.12.0
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