Retrieves the level (peak amplitude) of a sample, stream, MOD music or recording channel.
Assembly: Bass.Net (in Bass.Net.dll) Version: 18.104.22.168
[DllImportAttribute("bass.dll", EntryPoint = "BASS_ChannelGetLevelEx", CharSet = CharSet.Unicode)] public static bool BASS_ChannelGetLevel( int handle, float levels, float length, BASSLevel flags )
<DllImportAttribute("bass.dll", EntryPoint := "BASS_ChannelGetLevelEx", CharSet := CharSet.Unicode>] Public Shared Function BASS_ChannelGetLevel ( handle As Integer, <OutAttribute> levels As Single(), length As Single, flags As BASSLevel ) As Boolean
public: [DllImportAttribute(L"bass.dll", EntryPoint = L"BASS_ChannelGetLevelEx", CharSet = CharSet::Unicode)] static bool BASS_ChannelGetLevel( int handle, [InAttribute] [OutAttribute] array<float>^ levels, float length, BASSLevel flags )
[<DllImportAttribute("bass.dll", EntryPoint = "BASS_ChannelGetLevelEx", CharSet = CharSet.Unicode)>] static member BASS_ChannelGetLevel : handle : int * levels : float32 byref * length : float32 * flags : BASSLevel -> bool
- Type: SystemInt32
The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD.
- Type: SystemSingle
The array in which the levels are to be returned.
- Type: SystemSingle
How much data (in seconds) to look at to get the level (limited to 1 second).
- Type: Un4seen.BassBASSLevel
What levels to retrieve. One of the following (see BASSLevel):
BASS_LEVEL_ALL Retrieves a separate level for each channel. BASS_LEVEL_MONO Retrieve a single mono level. BASS_LEVEL_STEREO Get a stereo level. The left level will be from the even channels, and the right level will be from the odd channels. If there are an odd number of channels then the left and right levels will both include all channels. BASS_LEVEL_RMS Flag: Get the RMS level. Otherwise the peak level.
Return ValueType: Boolean
On success is returned - else , use BASS_ErrorGetCode to get the error code.
If successful, the requested levels are returned in the levels array.
|BASS_ERROR_HANDLE||handle is not a valid channel.|
|BASS_ERROR_NOPLAY||The channel is not playing.|
|BASS_ERROR_ENDED||The decoding channel has reached the end.|
|BASS_ERROR_BUFLOST||Should not happen... check that a valid window handle was used with.|