Resets a splitter stream and sets its position in the source buffer.
BOOL BASS_Split_StreamResetEx(
DWORD handle,
DWORD offset
);
| handle | The splitter handle. |
| offset | How far back (in bytes) to position the splitter in the source buffer. This is based on the source's sample format, which may have a different channel count to the splitter. |
| BASS_ERROR_HANDLE | handle is not a splitter stream. |
offset is automatically limited to the amount of data that the source buffer contains, which is in turn limited to the buffer size, determined by the BASS_CONFIG_SPLIT_BUFFER config option. The amount of source data buffered, as well as a splitter stream's position within it, is available from BASS_Split_StreamGetAvailable.
split = BASS_Split_StreamCreate(source, 0, NULL); // create a splitter stream BASS_Split_StreamResetEx(split, BASS_ChannelSeconds2Bytes(source, 0.5)); // set it 0.5s back in the buffer BASS_ChannelPlay(split, FALSE); // start playing