Links two MOD music or stream channels together.
BOOL BASS_ChannelSetLink( DWORD handle, DWORD chan );
handle | The channel handle... a HMUSIC or HSTREAM. |
chan | The handle of the channel to have linked with it... a HMUSIC or HSTREAM. |
BASS_ERROR_HANDLE | At least one of handle and chan is not a valid channel. |
BASS_ERROR_DECODE | At least one of handle and chan is a decoding channel, so cannot be linked. |
BASS_ERROR_UNKNOWN | Some other mystery problem! |
If a linked channel has reached the end, it will not be restarted when a channel it is linked to is started. If you want a linked channel to be restarted, you will need to have resetted its position using BASS_ChannelSetPosition beforehand.
BASS_ChannelSetLink(stream1, stream2); // link stream2 to stream1 BASS_ChannelStart(stream1); // start both streams together