BASS.NET API for the Un4seen BASS Audio Library

BassBASS_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.17.5
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

long pos = Bass.BASS_ChannelGetPosition(stream);
See Also

Reference