Retrieves the playback position of a mixer source channel, optionally accounting for some latency.
Namespace: Un4seen.Bass.AddOn.Mix
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.2
Syntax
[DllImportAttribute("bassmix")] public static long BASS_Mixer_ChannelGetPositionEx( int handle, BASSMode mode, int delay )
Parameters
- handle
- Type: SystemInt32
The mixer source channel handle (which was add via BASS_Mixer_StreamAddChannel(Int32, Int32, BASSFlag) or BASS_Mixer_StreamAddChannelEx(Int32, Int32, BASSFlag, Int64, Int64)) beforehand). - mode
- Type: Un4seen.BassBASSMode
How to retrieve the position. One of the following:Other modes and flags may be supported by add-ons, see the documentation.BASS_POS_BYTE Get the position in bytes. BASS_POS_MUSIC_ORDER Get the position in orders and rows... LoWord = order, HiWord = row * scaler (BASS_ATTRIB_MUSIC_PSCALER). (HMUSIC only). - delay
- Type: SystemInt32
How far back (in bytes) in the mixer output to get the source channel's position from.
Return Value
Type: Int64If an error occurs, -1 is returned, use BASS_ErrorGetCode to get the error code. If successful, the channel's position is returned.
Remarks
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not plugged into a mixer. |
BASS_ERROR_NOTAVAIL | The requested position mode is not available, or delay goes beyond where the mixer has record of the source channel's position. |
BASS_ERROR_UNKNOWN | Some other mystery problem! |
See Also