Retrieves the length (in orders) of a MOD music.
DWORD WINAPI BASS_MusicGetLength( |
Parameters
handle | The MOD music's handle. |
Return value
If succesful, then the music's length is returned, else 0xFFFFFFFF is returned. Use BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_HANDLE | handle is not valid. |
Example
To start playback of a MOD music from the beginning of the last order.
DWORD len=BASS_MusicGetLength(a_music); // get length |
See also
BASS_ChannelSetPosition, BASS_MusicPlayEx