Assembly: Bass.Net (in Bass.Net.dll) Version: 18.104.22.168
[DllImportAttribute("bassmix.dll", EntryPoint = "BASS_ChannelGetLevelEx", CharSet = CharSet.Unicode)] public static bool BASS_Mixer_ChannelGetLevel( int handle, float levels, float length, BASSLevel flags )
<DllImportAttribute("bassmix.dll", EntryPoint := "BASS_ChannelGetLevelEx", CharSet := CharSet.Unicode>] Public Shared Function BASS_Mixer_ChannelGetLevel ( handle As Integer, <OutAttribute> levels As Single(), length As Single, flags As BASSLevel ) As Boolean
public: [DllImportAttribute(L"bassmix.dll", EntryPoint = L"BASS_ChannelGetLevelEx", CharSet = CharSet::Unicode)] static bool BASS_Mixer_ChannelGetLevel( int handle, [InAttribute] [OutAttribute] array<float>^ levels, float length, BASSLevel flags )
[<DllImportAttribute("bassmix.dll", EntryPoint = "BASS_ChannelGetLevelEx", CharSet = CharSet.Unicode)>] static member BASS_Mixer_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
The amount of data to inspect to calculate the level, in seconds. The maximum is 1 second. Less data than requested may be used if the full amount is not available, eg. if the source's buffer (determined by the BASS_CONFIG_MIXER_BUFFER config option) is shorter.
- 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.
This function measures the level of the channel's sample data, not its level in the mixer output. It includes the effect of any DSP/FX set on the channel, but not the effect of the channel's BASS_ATTRIB_VOL or BASS_ATTRIB_PAN attributes or matrix mixing or any envelope set via BASS_Mixer_ChannelSetEnvelope(Int32, BASSMIXEnvelope, BASS_MIXER_NODE, Int32).
If the mixer is being played by BASS, the returned level will be in sync with what is currently being heard from the mixer. If another output system is being used, the BASS_ATTRIB_MIXER_LATENCY option can be used to tell the mixer what the latency is so that it can be taken account of, otherwise the channel's most recent data will be used to get the level. The BASS_CONFIG_MIXER_BUFFER config option determines how far back the level will be available from, so it should be set high enough to cover any latency.
|BASS_ERROR_HANDLE||handle is not plugged into a mixer.|
|BASS_ERROR_NOTAVAIL||The channel does not have buffering (BASS_MIXER_BUFFER) enabled.|
|BASS_ERROR_NOPLAY||The mixer is not playing.|