BASS_MusicPlayEx

Plays a MOD music, using the specified start position and flags.

BOOL WINAPI BASS_MusicPlayEx(
    HMUSIC handle,
    DWORD pos,
    int flags,
    BOOL reset
);

Parameters
handleThe MOD music's handle.
posPosition to start playback from... LOWORD = order, HIWORD = row.
flagsOverride the MOD music's current flags... -1 = use current flags, else a combination of these flags.
BASS_MUSIC_LOOPLoop the music.
BASS_MUSIC_RAMPUse "normal" ramping (as used in FastTracker 2).
BASS_MUSIC_RAMPSUse "sensitive" ramping.
BASS_MUSIC_FT2MODPlay .MOD file as FastTracker 2 would.
BASS_MUSIC_PT1MODPlay .MOD file as ProTracker 1 would.
BASS_MUSIC_POSRESETStop all notes when moving position (using BASS_ChannelSetPosition or this function).
resetTRUE = 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_STARTThe digital output has not been started. Use BASS_Start to do so.
BASS_ERROR_HANDLEhandle is not a valid MOD music handle.
BASS_ERROR_POSITIONpos is invalid.
BASS_ERROR_BUFLOSTShould 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