![]() |
![]() |
![]() |
![]() |
![]() |
|||||||||||||||||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
![]() |
MusSetMarkerCallback()Set the marker callback function. Syntax void MusSetMarkerCallback(void *callback); Arguments
Explanation typedef void(*LIBMUScb_marker) (musHandle, int); The parameters passed to the callback function are the handle of the song that generated the callback and the number of synchronous markers found. Note: The callback function is called from the library thread, so it is best to process it quickly. Return Value
Example void GameSongCallback(musHandle handle, int marker) { if (handle==gamesong_handle) gamesong_position = marker; } void GameSongStart(void) { gamesong_position = 0; gamesong_handle = MusStartSongFromMarker(&song_data, 1); MusSetMarkerCallback(GameSongCallback); } See Also
|