BASS.NET API for the Un4seen BASS Audio LibraryBassDShowBASS_DSHOW_ChannelGetPosition Method BASS.NET API for the Un4seen BASS Audio Library
Gets the current position of the video stream.

Namespace: Un4seen.Bass.AddOn.DShow
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.13.3
Syntax

[DllImportAttribute("xVideo", EntryPoint = "xVideo_ChannelGetPosition")]
public static double BASS_DSHOW_ChannelGetPosition(
	int handle,
	BASSDSHOWMode mode
)

Parameters

handle
Type: SystemInt32
The video channel handle (as returned by BASS_DSHOW_StreamCreateFile(String, Int32, IntPtr, BASSFlag)).
mode
Type: Un4seen.Bass.AddOn.DShowBASSDSHOWMode
How to get the position. One of the following (see BASSDSHOWMode):
BASS_DSHOW_POS_SECThe position is in seconds.
BASS_DSHOW_POS_MILISECThe position is in milliseconds.
BASS_DSHOW_POS_FRAMEThe position is in video frames.
BASS_DSHOW_POS_REFTIMEThe position is in reference time (1 unit = 100 nanoseconds).

Return Value

Type: Double
If successful, the current position of the video stream in units according to the BASSDSHOWMode used, else 0 is returned. Use BASS_DSHOW_ErrorGetCode to get the error code.
See Also

Reference