Set up a static branch at a marker.
Err spBranchAtMarker (SPSound *fromSound, const char *fromMarkerName, SPSound *toSound, const char *toMarkerName)
Sets up a static branch from one marker to another. Barring the result of a marker or default decision function, when the playback encounters the 'from' marker, the playback will skip to the 'to' marker seamlessly.
Markers can have one of 3 static actions: continue, branch, or stop. This action can be changed at any time, including while the player is playing.
Non-negative value on success; negative error code on failure.
Both SPSounds must belong to the same SPPlayer.
Good sounding results require good placement of markers in the sounds.
Library call implemented in music.lib V24.
soundplayer.h, music.lib
spStopAtMarker
(), spContinueAtMarker(), spSetMarkerDecisionFunction(), spSetDefaultDecisionFunction()