<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > TBASS (Sound Module) > Channels > TBASS_ChannelBytes2Seconds |
Description
Translates a byte position into time (seconds), based on a channel's format
Syntax
n = TBASS_ChannelBytes2Seconds(hChannel, Pos)
Returns
Number
If successful, then the translated length is returned, else a negative value is returned.
Parameters
Name |
Type |
Optional |
Meaning |
hChannel |
Numeric |
No |
The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD. |
Pos |
Numeric |
No |
The position to translate. |
Remarks
The translation is based on the channel's initial sample rate, when it was created.
Restrictions
See also
Examples