BASS_StreamPlay

Plays a sample stream.

BOOL WINAPI BASS_StreamPlay(
    HSTREAM handle,
    BOOL flush,
    DWORD flags
);

Parameters
handleHandle of the stream to play.
flushFlush buffer contents?.. If you stop a stream and then want to continue it from where it stopped, don't flush it. Flushing a file stream (created with BASS_StreamCreateFile) causes it to be restarted from the beginning.
flagsAny combination of these flags.
BASS_SAMPLE_LOOPLoop the file. (file streams only)

Return value
If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes
BASS_ERROR_STARTThe digital output has not been started. Use BASS_Start to do so.
BASS_ERROR_HANDLEhandle is not a valid stream handle.
BASS_ERROR_BUFLOSTShould not happen, but... PLEASE REPORT IT IF YOU DO GET THIS ERROR!

See also
BASS_ChannelGetLevel, BASS_ChannelGetPosition, BASS_ChannelIsActive, BASS_ChannelPause, BASS_ChannelStop, BASS_StreamCreate, BASS_StreamCreateFile