Navigation:  thinBasic Modules > TBASS (Sound Module) > Channels >

TBASS_ChannelGetPosition

Previous pageReturn to chapter overviewNext page

 

Description

 

Retrieves the playback position (in bytes) of a sample, stream, or MOD music. Can also be used with a recording channel.

 

Syntax

 

n = TBASS_ChannelGetPosition(hChannel)

 

Returns

 

Number

If an error occurs, -1 is returned. Use TBASS_ErrorGetCode to get the error code.

If successful, the position is returned.

 

Parameters

 

Name

Type

Optional

Meaning

hChannel

Number

No

The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD.

 

Remarks

 

Restrictions

 

See also

 

Examples