Unknown
From BASS
BASS_ChannelGetPosition
Retrieves the playback position of a sample, stream, or MOD music. Can also be used with a recording channel.
QWORD BASS_ChannelGetPosition(
DWORD handle,
DWORD mode
);
Parameters
| handle | The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD. | ||||||
| mode | How to retrieve the position. One of the following, with optional flags.
|
Return value
If successful, then the channel's position is returned, else -1 is returned. Use BASS_ErrorGetCode to get the error code.Error codes
| BASS_ERROR_HANDLE | handle is not a valid channel. |
| BASS_ERROR_NOTAVAIL | The requested position is not available. |
| BASS_ERROR_UNKNOWN | Some other mystery problem! |
See also
BASS_ChannelBytes2Seconds, BASS_ChannelGetLength, BASS_ChannelIsActive, BASS_ChannelSetPosition, BASS_ChannelSetSync, BASS_StreamGetFilePosition