Sets the playback position of a sample or stream to the given seconds value.
Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Parameters
- handle
- Type: SystemInt32
The channel handle... a HCHANNEL or HSTREAM. - seconds
- Type: SystemDouble
The seconds value to set the position to (milliseconds are represented in the fraction part).
Return Value
Type: BooleanIf succesful, then is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not a valid channel. |
BASS_ERROR_NOTFILE | The stream is not a file stream. |
BASS_ERROR_POSITION | The requested position is invalid, eg. beyond the end. |
BASS_ERROR_NOTAVAIL | The download has not yet reached the requested position. |
BASS_ERROR_UNKNOWN | Some other mystery problem! |
See Also