Retrieves the level of multiple loudness measurements combined.
Namespace: Un4seen.Bass.AddOn.Loud
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.18.0
Syntax
public static bool BASS_Loudness_GetLevelMulti( int[] handles, BassLoudness mode, ref float level )
Parameters
- handles
- Type: SystemInt32
An array of loudness measurement handles. - mode
- Type: Un4seen.Bass.AddOn.LoudBassLoudness
The measurement type to retrieve. One of the following BassLoudness:BASS_LOUDNESS_CURRENT Loudness in LUFS of the last 400ms or the duration (in milliseconds) specified in the HIWORD (use MakeLong(Int16, Int16)). BASS_LOUDNESS_INTEGRATED Integrated loudness in LUFS. This is the average since measurement started. BASS_LOUDNESS_RANGE Loudness range in LU. BASS_LOUDNESS_PEAK Peak level in linear scale. BASS_LOUDNESS_TRUEPEAK True peak level in linear scale. - level
- Type: SystemSingle
The returned single measurement level (eg. weighted over all channels, stereo, 5.1 etc.).
Return Value
Type: BooleanIf successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
The BASS_LOUDNESS_CURRENT mode is not available when combining multiple measurements.
| ERROR CODE | Description |
|---|---|
| BASS_ERROR_HANDLE | handles is not valid. |
| BASS_ERROR_ILLPARAM | mode is not valid. |
| BASS_ERROR_NOTAVAIL | The requested measurement has not been enabled. It needs to be enabled on all of the provided handles. |
See Also