|
|
|
|
|
|
|||||||||||||||||||||||||
al - Audio Library Functions gDP - DP GBI Macros gdSP - General GBI Macros gSP - SP GBI Macros gt - Turbo Microcode RDP gu - Graphics Utilities Math - Math Functions Mus - Mus Library nuSys - NuSystem os - N64 Operating System sp - Sprite Library Functions uh - Host to Target IO 64DD - N64 Disk Drive
|
![]() |
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
|
|||||||||||||||||||||||||||