Starts/resumes playback of a sample, stream, MOD music, or a recording.
BOOL BASS_ChannelPlay( DWORD handle, BOOL restart );
handle | The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD. |
restart | Restart playback from the beginning? This has no effect on streams with the BASS_STREAM_BLOCK flag set or on recordings. |
BASS_ERROR_HANDLE | handle is not a valid channel. |
BASS_ERROR_DECODE | handle is a decoding channel, so cannot be played. |
BASS_ERROR_START | The output is paused/stopped, use BASS_Start to start it. |
If other channels have been linked to the specified channel via BASS_ChannelSetLink, this function will attempt to simultaneously start playing them too but if any fail, it will be silently. The return value and error code only reflects what happened with the specified channel. BASS_ChannelIsActive can be used to confirm the status of linked channels.