BASS.NET API for the Un4seen BASS Audio Library

BassCdBASS_CD_Analog_GetPosition Method (Int32, Int32)

BASS.NET API for the Un4seen BASS Audio Library
Retrieves the current position on a drive in seconds.

Namespace:  Un4seen.Bass.AddOn.Cd
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

public static double BASS_CD_Analog_GetPosition(
	int drive,
	ref int track
)

Parameters

drive
Type: SystemInt32
The drive... 0 = the first drive.
track
Type: SystemInt32
Returns the current track number being played.

Return Value

Type: Double
If an error occurs, -1 is returned, use BASS_ErrorGetCode to get the error code. If successful, the position in seconds is returned.
Remarks

ERROR CODEDescription
BASS_ERROR_DEVICEdrive is invalid.
BASS_ERROR_UNKNOWNSome other mystery problem!

Examples

int track = 0;
double sec = BASS_CD_Analog_GetPosition(0, ref track);
See Also

Reference