Plays a sample stream.
BOOL WINAPI BASS_StreamPlay( |
Parameters
handle | Handle of the stream to play. | ||
flush | Flush 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. | ||
flags | Any combination of these flags.
|
Return value
If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_START | The digital output has not been started. Use BASS_Start to do so. |
BASS_ERROR_HANDLE | handle is not a valid stream handle. |
BASS_ERROR_BUFLOST | Should 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