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
|
MusHandleUnPause()Resume channels using a sound handle. Syntax int MusHandleUnPause(musHandle handle); Arguments
Explanation
The pausing/resuming process may result in songs not quite sounding exactly as they should. This is because processing is suspended but the samples currently being used will play through to the end or loop. When processing is resumed, some samples may be offset because the sample playing continues during the pause period. This function passes the pause command to the player via the FIFO buffer. If there is no space free in the FIFO buffer, this command will be ignored. The FIFO buffer is emptied every time the player processes sound data. The handle must be a sound handle returned by MusStartSong(), MusStartEffect() or MusStartEffect2(). Return Value
Example void ResumeSong(musHandle handle) { int I; while (MusHandleUnPause(handle)==0) WaitForVsync(); for (I=0; I!=0x80; I+=0x20) { WaitForVsync(); MusHandleSetVolume(handle, I); } } See Also
|