Retrieves the splitter streams of a channel.

DWORD BASS_Split_StreamGetSplits(
    DWORD handle,
    HSTREAM *splits,
    DWORD count


handleThe channel handle... a HMUSIC, HSTREAM or HRECORD.
splitsAn array to receive the splitter stream handles.
countThe maximum number of handles to receive in the splits array... 0 = get the number of splitters that the channel has without getting the handles.

Return value

If successful, the number of splitter streams placed in the splits array is returned, or the total number of splitter streams if count = 0, else -1 is returned. Use BASS_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_HANDLEhandle has never had any splitter streams.

See also