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

TBASS_ChannelGetLength

Previous pageReturn to chapter overviewNext page

 

Description

 

Retrieves the playback length (in bytes) of a channel.

 

Syntax

 

n = TBASS_ChannelGetLenght(hChannel)

 

Returns

 

Number

If successful, then the channel's length is returned, else -1 is returned.. Use TBASS_ErrorGetCode to get the error code.

 

Parameters

 

Name

Type

Optional

Meaning

hChannel

Number

No

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

 

Remarks

 

Restrictions

 

See also

 

Examples