Sets the playback position in bytes of a mixer source channel (using BASS_POS_BYTE).
Namespace: Un4seen.Bass.AddOn.Mix
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Parameters
- handle
- Type: SystemInt32
The mixer source channel handle (which was add via BASS_Mixer_StreamAddChannel(Int32, Int32, BASSFlag) or BASS_Mixer_StreamAddChannelEx(Int32, Int32, BASSFlag, Int64, Int64)) beforehand). - pos
- Type: SystemInt64
The position, in bytes. With MOD musics, the MakeLong(Int16, Int16)(order,row) method can be used to set the position in orders and rows instead of bytes.The playback buffer of the mixer can be flushed by using pos = 0.
Return Value
Type: BooleanIf successful, then is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
For custom looping purposes (eg. in a mixtime SYNCPROC), the standard BASS_ChannelSetPosition(Int32, Int64, BASSMode) function should be used instead of this
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | The channel is not plugged into a mixer. |
BASS_ERROR_NOTFILE | The stream is not a file stream. |
BASS_ERROR_POSITION | The requested position is illegal. |
BASS_ERROR_NOTAVAIL | The download has not yet reached the requested position. |
BASS_ERROR_UNKNOWN | Some other mystery problem! |
Examples
BassMix.BASS_Mixer_ChannelSetPosition(streamA, Bass.BASS_ChannelSeconds2Bytes(streamA, 35.0));
See Also