Translates a time (seconds) position into bytes, based on a channel's format.
QWORD BASS_ChannelSeconds2Bytes( DWORD handle, double pos );
|handle||The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD. HSAMPLE handles may also be used.|
|pos||The position to translate.|
Return valueIf successful, then the translated length is returned, else -1 is returned. Use BASS_ErrorGetCode to get the error code.
|BASS_ERROR_HANDLE||handle is not a valid channel.|
RemarksThe translation is based on the channel's initial sample rate, when it was created.
The return value is rounded down to the position of the nearest sample.