TBASS_ChannelGetLength

<< Click to Display Table of Contents >>

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

TBASS_ChannelGetLength

 

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