BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_ChannelGetPosition Method (Int32)BASS.NET API for the Un4seen BASS Audio Library
Retrieves the playback position in bytes of a sample, stream, or MOD music. Can also be used with a recording channel.

Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public static long BASS_ChannelGetPosition(
	int handle
)

Parameters

handle
Type: SystemInt32
The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD.

Return Value

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

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not a valid channel.
BASS_ERROR_UNKNOWNSome other mystery problem!

Examples

VB
Dim pos As Long = Bass.BASS_ChannelGetPosition(stream)
long pos = Bass.BASS_ChannelGetPosition(stream);
See Also

Reference