Plays a MOD music, using the specified start position and flags.
BOOL WINAPI BASS_MusicPlayEx( |
Parameters
handle | The MOD music's handle. | ||||||||||||
pos | Position to start playback from... LOWORD = order, HIWORD = row. | ||||||||||||
flags | Override the MOD music's current flags... -1 = use current flags, else a combination of these flags.
| ||||||||||||
reset | TRUE = Stop all playing notes and reset BPM, etc... |
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 MOD music handle. |
BASS_ERROR_POSITION | pos is invalid. |
BASS_ERROR_BUFLOST | Should not happen, but... PLEASE REPORT IT IF YOU DO GET THIS ERROR! |
Example
To reset and start playback of a MOD music at row 10 of order 5.
BASS_MusicPlayEx(a_music,MAKELONG(5,10),-1,TRUE); |
See also
BASS_ChannelGetLevel, BASS_ChannelGetPosition, BASS_ChannelIsActive, BASS_ChannelPause, BASS_ChannelStop, BASS_MusicGetLength, BASS_MusicLoad, BASS_MusicPlay