BASS_ChannelBytes2Seconds
Translates a byte position into time (seconds), based on a channel's format.
double BASS_ChannelBytes2Seconds(
DWORD handle,
QWORD pos
);
Parameters
handle | The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD. HSAMPLE handles may also be used.
|
pos | The position to translate.
|
Return value
If successful, then the translated length is returned, else a negative value is returned. Use BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_HANDLE | handle is not a valid channel.
|
Remarks
The translation is based on the channel's initial sample rate, when it was created.
See also
BASS_ChannelGetInfo, BASS_ChannelGetPosition, BASS_ChannelSeconds2Bytes