Bluetooth Framework C++ Edition

◆ GetPeak()

int GetPeak ( float &  Value)

Gets the peak sample value in the audio stream.

Parameters
ValueThe variable into which the method writes the peak sample value for the audio stream. The peak value is a number in the normalized range from 0.0 to 1.0.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.