BASS.NET API for the Un4seen BASS Audio LibraryBassDShowBASS_DSHOW_ChannelGetLength Method BASS.NET API for the Un4seen BASS Audio Library
Gets the length 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_ChannelGetLength")]
public static double BASS_DSHOW_ChannelGetLength(
	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 length is in seconds.
BASS_DSHOW_POS_MILISECThe length is in milliseconds.
BASS_DSHOW_POS_FRAMEThe length is in video frames.
BASS_DSHOW_POS_REFTIMEThe length is in reference time (1 unit = 100 nanoseconds).

Return Value

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

0 is ussualy returned when the stream doesn't contain video or if an invalid channel handle was specified.
See Also

Reference